testtesttesttest Posted February 11, 2008 Share Posted February 11, 2008 It looks like hey took the downloads off PHP.net, but PHP5 can't run a script from command line. Does anyone have a copy of good ol PHP 4? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 11, 2008 Share Posted February 11, 2008 Download both PHP4 & PHP5 (plus apache, mysql) from Download both PHP4 & PHP5 (plus apache, mysql) from xampp Ken Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 11, 2008 Share Posted February 11, 2008 PHP can run scripts from the command line, regardless of the version your have. just run the following command, from the command prompt: php- h That will list available flags the PHP executable accepts. For running a php file just run: php -f C:/path/to/file.php NOTE: you'll need to cd (change directory) to where php.exe is located in order for the php command to be recognised by Windows. If you don't want to do this add PHP to PATH Environment Variable instead. Also have a read of the following page in the manual: Using PHP from the command line Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.