Posted by Erwin Moller on 01/05/07 15:05
sam wrote:
> Hi,
> My question is how to use php on command line in windows
Hi
Only php.exe will execute from commandline, not the sapi-variant.
First check if php.exe is added to the path by simply typing: path
Does it list the path to php.exe?
(If not add it, or go to the directory where php.exe is.)
Now type something like:
php -?
or
php myscript.php
Regards,
Erwin Moller
PS: Maybe you need the file php-win.exe instead of php.exe, not sure. I
seldom use PHP commandline.
[Back to original message]
|