Re: QUERY_STRING for php CGI (Win32)
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 19:05:19 +0000 |
| Subject: | Re: QUERY_STRING for php CGI (Win32) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4105@lists.php.net to get a copy of this message | ||
In article <41256904.002E7762.00@mail1.ch.abb.com>,
stephan.schoell@chhos.mail.abb.com wrote:
> Good morning everybody!
> Has anybody made any experience passing a QUERY_STRING to a php script run on
> the command line as CGI under win32? Does this work? And how?
>
> How does the foolowing command have to be extended?
>
> php -q source.php3 > destination.html
>
> If I called the script from the browser I would enter
> "http://www.domain.xx/source.php3?id=timetable" on
> the URL line for example.
From the command line, you can just pass in args and alter source.php3 to
look at $argc and $argv
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)