Re: Apache 2.*

From: Date: Mon, 24 Nov 2003 16:13:51 +0000
Subject: Re: Apache 2.*
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170805@lists.php.net to get a copy of this message
--- Martin Hudec <corwin@aeternal.net> wrote: > what you're looking for is called Register Globals which is turned > off, therefore you just cannot use $variable but must use > $HTTP_POST_VARS['variable']. To add to this, if register_globals is disabled by default, it is likely that you're using a version of PHP that is recent enough to have $_POST. So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only is it shorter, I believe the older name is deprecated. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#170805) next »