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:[EMAIL PROTECTED]] Sent: 28 April 2002 12:32 To: [EMAIL PROTECTED] 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php