Re: php commandline
| From: | Daniel Gustafsson | Date: | Wed, 05 Jul 2000 14:03:00 +0000 |
| Subject: | Re: php commandline | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4938@lists.php.net to get a copy of this message | ||
At 04:01 PM 7/5/00 +0200, you wrote:
>hi!
>
>how can i pass arguments to a php scripts called from the command line?
>(for example in an autoresponder mail alias)
You'll have to set the enviroment variable QUERY_STRING (it's how the web
server passes everything after the '?' to a standard cgi). Remember that it
has to be formatted in the same manner.