Re: how to use PHP on command line in windows
| From: | Scott St. John | Date: | Fri, 01 Mar 2002 20:57:04 +0000 |
| Subject: | Re: how to use PHP on command line in windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86845@lists.php.net to get a copy of this message | ||
Just download the CGI version and call it from the command line. I am
doing a project now based entirely on the command line using PHP as a file
parser on Win 2K. You can add it to your path or just call it:
c:\php\php.exe -q nameOfScript.php
Make sure you write it like a normal PHP script with the tags <?. The -q
will supress the HTTP headers.
-Scott
On Fri, 1 Mar 2002, Peter J. Schoenster wrote:
> Hi,
>
> I use NT for development and I like to write snippets of code and
> test them on my local box. I can do this in Perl. How can I do that
> in PHP without installing a webserver etc. etc. I guess I can install
> a version of PHP and just make sure I've got the path in my env.
>
> Thanks,
>
> Peter
> http://www.readbrazil.com/
> Answering Your Questions About Brazil
>
>
--