You are here: Re: How to use php on the command line? « PHP Programming Language « IT news, forums, messages
Re: How to use php on the command line?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация