RE: [PHP] php script from bat file
| From: | Jay Blanchard | Date: | Tue, 12 Jun 2007 16:33:50 +0000 |
| Subject: | RE: [PHP] php script from bat file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256731@lists.php.net to get a copy of this message | ||
[snip]
What's the syntax I need to use to execute a PHP script from a batch
file?
PHP is installed in 'C:\PHP' and the script I want to run is in
'C:\Inetpub\scripts\run.php'.
I've created a Windows batch file which executes from the 'C:\PHP'
directory and contains a single line 'php.exe
C:\Inetpub\scripts\run.php'.
It seems to run ok but nothing happens. Any ideas?
[/snip]
Is php.exe in your path?