Re: Verry strange GET behaviour

From: Date: Tue, 07 Oct 2003 15:55:15 +0000
Subject: Re: Verry strange GET behaviour
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165320@lists.php.net to get a copy of this message
--- John Wilcox <random50k@yahoo.com> wrote: > On the topic of passing args, can someone please explain to me why > I'm unable to use $_GET or $_POST if my php script is run as a .cgi? I believe this is because you are using the #! method to define the interpreter, which means your Web server simply executes the script the same as you would from the command line. What you may want to do is to have the Web server interpret .cgi files as PHP, assuming all your CGIs are PHP scripts. Then you can leave out your #! line at the top also. Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#165320) next »