Re: Re: Echo $PHP_SELF not working

From: Date: Fri, 10 Oct 2003 16:55:07 +0000
Subject: Re: Re: Echo $PHP_SELF not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165766@lists.php.net to get a copy of this message
Unless you do an extract($_POST); in a main include somewhere before your form. For $PHP_SELF just do $PHP_SELF = $_SERVER['PHP_SELF']; or to get all of the $_SERVER vars, do extract($_SERVER); -Shawn "Jeff McKeon" <jmckeon@telaurus.com> wrote in message news:B3F5C378E4B6034CA27B15C99E9133CE63EE81@exch01tc07927.telaurus.net... So you're saying I had register_globals set to ON on my dev server!? CRAP!!! I thought I was working with it off!!!!! Now I have to redevelop it all and change all my $variables from forms to $_POST['variable']? Even when they post to the same page with "action='<?PHP ECHO $_SERVER['PHP_SELF']>'"?? Jeff > -----Original Message----- > From: Paul van Schayck [mailto:newsgroups@meosource.com] > Sent: Friday, October 10, 2003 8:24 AM > To: php-general@lists.php.net > Subject: [PHP] Re: Echo $PHP_SELF not working > > > Hello, > Here we go again ;) > > jmckeon@telaurus.com (Jeff McKeon) wrote > > I've just published a new website and something is wrong. > I suspect > > the PHP.ini on the server but I can't seem to find anything. > > register_globals is on off. Which is a good idea, keep it there! > > > > On the dev server "ECHO $PHP_SELF" seems to work but not on the > > production one. Any ideas what I've missed? > http://nl2.php.net/manual/en/reserved.variables.php#reserved.variables.s erv er echo $_SERVER['PHP_SELF']; Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#165766) next »