Page 1 of 1

enabling PHP/cURL on windows. Last resort

Posted: Sat May 22, 2010 8:57 pm
by jimm1909
JJJJJJ wrote:Further to my last post:

I get the error when using a command line to execute my script. I compile the php file to an exe file and then execute the exe file.

I have just tried to use my browser to test the script and it works! If I type in:

Code: Select all

http://localhost/Webbots/test3.php
San Diego Beach Hotel

then the script returns the contents of a webpage, so when I display the actual html on the browser by displaying it between

Code: Select all

<xmp></xmp>
tags it shows the full html just how I want it to look in the command line box (shell??).

I have no idea why the it should work with the browser but not from the command line. Any ideas?

Note: I am compiling my code to an exe only because when I type in:

Code: Select all

php test3.php
into the command line I get a message saying:

Code: Select all

'php' is not recognized as an internal or external command,
operable program or batch file.
Many thanks

Joe
Anyone know the solution to this issue? I am having the same problem and am interested in finding a way.

Let me know, thanks.

-Jim

Re: enabling PHP/cURL on windows. Last resort

Posted: Sun Jun 27, 2010 4:11 pm
by David Morgan
Sorry, I'm confused, it is working when you put it in a browser, just not when you compile it and run it from command line?


DMorgan
Lake Tahoe ResortReviewer