Re: PHP without a webserver
| From: | Brian Clark | Date: | Sat, 14 Apr 2001 18:26:00 +0000 |
| Subject: | Re: PHP without a webserver | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48573@lists.php.net to get a copy of this message | ||
Hi Plutarck,
@ 2:11:35 PM on 4/14/2001, Plutarck wrote:
> Ah, even better. However, how would the script be passed to PHP? As
> a command line argument?
Install the CGI executable of PHP in c:\php
In your autoexec.bat:
SET PATH=c:\php;%PATH%
Reboot.
From the command line:
php -q script.php
And read about $argc and $argv. If you're familiar with C, those
shouldn't be a problem.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.