To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 23 December 2004 01:12, Keane, Warren A FIN:EX wrote:
> I did try
>
> if (empty($_GET)) { parse_str($_SERVER['QUERY_STRING'],$_GET); }
>
> which worked so I guess I should be able to come up with an
> equivalent for _POST using argv, argc.
>
> > I am guessing but I also think the problem is to do with the fact
> > that the CGI sapi is being used.
>
> I am using the CLI SAPI, I checked using php_sapi_name(). Is this
> causing the problem?
Absolutely -- this is the Command-Line Interface. As this is intended for
command-line scripting, it has no notion of being used in a Web context and
does not even attempt to fill the $_POST or $_GET (or most of the other $_)
arrays. You need to use either the CGI SAPI, or the Apache module.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php