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

Reply via email to