Re: php script from bat file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/12/07, Bosky, Dave <Dave.Bosky@xxxxxxxxxx> wrote:
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?



Thanks,

Dave


Try using the full path to the php.exe binary, I don't have PHP on
windows, but I guess it is
c:\PHP\bin\php.exe
in your example, so that would become
C:\PHP\bin\php.exe C:\Inetpub\scripts\run.php

Tijnema

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux