RE: [PHP-WIN] PHP Command Line Syntax
| From: | Stuart Dallas | Date: | Sun, 28 Apr 2002 19:58:48 +0000 |
| Subject: | RE: [PHP-WIN] PHP Command Line Syntax | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13369@lists.php.net to get a copy of this message | ||
Set the environment variable QUERY_STRING prior to running PHP...
set QUERY_STRING=servername=SERVERNAME
c:\php\php.exe -q checksingle.php
HTH,
Stuart
-----Original Message-----
From: Scott Dowd [mailto:scottdowd@optusnet.com.au]
Sent: 28 April 2002 12:32
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP Command Line Syntax
I would like to schedule a series of PHP pages to run overnight from a
Win2k/IIS/PHP4 box. An example of the url is
http://localhost/checklist/checksingle.php?servername=SERVERNAME.
When I try
to execute this from a DOS prompt, "C:\PHP\PHP.EXE -q checksingle.php" it
works fine, but when I add "?servername=SERVERNAME" as in the url, it does
not recognize the command.
"PHP Fatal error: Unable to open checksingle.php?servername=SERVERNAME in
Unknow
n on line 0"
Is this the best way to schedule a PHP page to run ?
Thanks,
Scott.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php