Re: mail problem

From: Date: Sun, 11 Jul 2004 08:08:16 +0000
Subject: Re: mail problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190174@lists.php.net to get a copy of this message
> Is it not true that $HTTP_POST_VARS is more secure than $_POST, even though > the latter is a superglobal? Doesn't the former acount for un-updated > server versions? > If it isn't, what disadvantage is there to using $HTTP_POST_VARS? Why > should one use $_POST instead? No, $HTTP_xxx is not "more secure". Please read http://php.net/variables.predefined If you're working on a server which is older than PHP4.1.0, then you'll have to use the older $HTTP stuff. If not, you're encouraged to use the newer superglobal form. The $HTTP stuff is disabled by default in PHP5. In terms of backward compatability I'd still advise you to use the newer form, there are very few hosts that still run php4.1.0 (because it has many dangerous bugs). > (P.S.: Aidan Lister, this may be a dumb question, but please don't bother > responding.) Please, you asked a stupid question and got done for it - let's put the past behind us. Hope this helps.

« previous php.general (#190174) next »