you need to configure your webserver recognize .cgi as a file to run the php interpreter against.
i.e do whatever you did to make .php work again for .cgi --- John Wilcox <[EMAIL PROTECTED]> 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? Basically, I have a > simple html input form that has: > > <form name="testform" action="test.cgi" > method="GET"> > <input type="text" name="textbox"> > <input type="submit" value="Submit"> > </form> > > and a simple php script in a file called test.cgi > which looks like: > > #!/usr/local/bin/php > > <?php > print $_GET['testbox']; > ?> > > Now, if I rename this script to test.php, everything > works fine, but not while run as a cgi. I have no > such problems when implementing the exact same code > using Perl, so I'm thinking that php requires a > different method of obtaining args when run as a > cgi. > If anyone can tell me the method, I would greatly > appreciate it. Thanks, > > John > > --- Chris Shiflett <[EMAIL PROTECTED]> wrote: > > --- Ben Edwards <[EMAIL PROTECTED]> wrote: > > > Been having a problem accessing a variable that > is > > passed on a URL. > > > > This question is asked several times a week. > > > > You have register_globals disabled, and if you are > > asking this question, you > > need to leave register_globals disabled. Use > > $_GET['_section'] to access your > > variable. > > > > Hope that helps. > > > > Chris > > > > ===== > > My Blog > > http://shiflett.org/ > > HTTP Developer's Handbook > > http://httphandbook.org/ > > RAMP Training Courses > > http://www.nyphp.org/ramp > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php