PHP Command Line Syntax
| From: | Scott Dowd | Date: | Sun, 28 Apr 2002 11:31:35 +0000 |
| Subject: | PHP Command Line Syntax | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13367@lists.php.net to get a copy of this message | ||
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.