Re: [PHP-DB] PHP Command Line
Ryan Jameson (USA) wrote: Bummer... So I can't send the named variables as a query string? Well, this will work. Thanks! You could pass a querystring-style parameter to a script and then run it through http://php.net/parse_str but I can't see any benefit to doing that. -- Stuart -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP Command Line
Anyone know how to pass a query string to a php script when you call it on the command line? Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP Command Line
php script.php %1 %2 %3 %4 And it is referenced as $argv[arg number] ... I think. To be sure, here is the link to that info: http://www.php.net/manual/en/features.commandline.php - Paul -Original Message- From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 4:34 PM To: PHP-DB Subject: [PHP-DB] PHP Command Line Anyone know how to pass a query string to a php script when you call it on the command line? Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP Command Line
Bummer... So I can't send the named variables as a query string? Well, this will work. Thanks! -Original Message- From: Paul Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 3:51 PM To: 'PHP-DB' Subject: RE: [PHP-DB] PHP Command Line php script.php %1 %2 %3 %4 And it is referenced as $argv[arg number] ... I think. To be sure, here is the link to that info: http://www.php.net/manual/en/features.commandline.php - Paul -Original Message- From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 4:34 PM To: PHP-DB Subject: [PHP-DB] PHP Command Line Anyone know how to pass a query string to a php script when you call it on the command line? Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php