Running Php scripts by command line in Windows
To run Php scripts by command line first go to
the folder where Php is installed
If it’s installed in C drive in Php folder
1.Go to Start->Run->cmd
2.Then type “CD php” in cmd
Then to execute the files
Just type the below lines at the command prompt
C\:php>php.exe 1a.php
To execute the files which are stored in the separate folder
Use this
C\:php>php.exe asd/1a.php
Here we are executing a file which is stored in the folder C:\Php\asd\1a.php
This entry was posted on Monday, August 25th, 2008 at 8:24 am and is filed under Php. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.