Re: Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST

From: Date: Wed, 13 Oct 2004 08:47:40 +0000
Subject: Re: Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199347@lists.php.net to get a copy of this message
On Wednesday 13 October 2004 15:08, Francis Chang wrote: [snip] > access the post variables. My question is, is the $HTTP_POST_VARS global > still populated for backwards compatibility? In other words, if I have an > old script that has the following piece of code running on a PHP5.0 > environment with register_globals off (after submission of a form), would > it still work as expected? > > Function someFunction($variable) { > global $HTTP_POST_VARS; > > return IsSet($HTTP_POST_VARS[$variable]) > > } manual > Appendix B. Migrating from PHP 4 to PHP 5 see section "New Directives". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* There are more dead people than living, and their numbers are increasing. -- Eugene Ionesco */

« previous php.general (#199347) next »