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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux