enabling PHP/cURL on windows. Last resort

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jimm1909
Forum Newbie
Posts: 2
Joined: Sat May 22, 2010 8:54 pm

enabling PHP/cURL on windows. Last resort

Post 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
David Morgan
Forum Newbie
Posts: 1
Joined: Sun Jun 27, 2010 4:08 pm

Re: enabling PHP/cURL on windows. Last resort

Post 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
Post Reply