$_GET variable got empty when running PHP as CGI



Hello all!

I'm running PHP 5.2.3 on the thttpd server on NetBSD 3.1. It is
running as CGI fine, but when I pass arguments to a page like:

page.php?one=foo&two=bar&three=3

I get a zero-size array in $_GET. var_dump($_GET) output is: array(0)
{ }, although the query string is in $_SERVER['QUERY_STRING'].

Any clue?

Thank you very much.

.



Relevant Pages

  • Re: Script halts after 60 minutes
    ... Does your server have a timeout value specified? ... JDS Computer Training Corp. ... It looks like you're running PHP as a CGI, ... BTW - why are you running PHP as a CGI instead of a module? ...
    (comp.lang.php)
  • Re: $_SERVER[DOCUMENT_ROOT]
    ... As a CGI, generally not. ... That would explain why the perl equivalent under IIS is not there as perl typically runs as a CGI. ... I'm running php on the same IIS server and $_SERVERis visible, so this must be because it is running as a module. ...
    (comp.lang.php)
  • Re: mod_php vs. CGI
    ... CGI and not mod_php? ... recommend FastCGI over mod_php for use with Zeus; people running PHP ... unauthorized access by other users of the same system. ...
    (comp.lang.php)
  • PHP "security" issues on hosts
    ... I want to identify which hosts will give me the most flexibility; ... what configuration/style of running PHP ... Should PHP be running as a module or CGI? ...
    (php.general)
  • Re: $_SERVER[DOCUMENT_ROOT]
    ... Michael Fesser wrote: ... case in GoDaddy). ... If you're running PHP as a module, then yes, it is available. ... As a CGI, generally not. ...
    (comp.lang.php)