Re: php 3 to 5 upgrade: foreach loop no longer working

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

 



On 18/04/06, Vernon Webb <vernon@xxxxxxxxxxxx> wrote:
> I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had
> been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of
> a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc).

There is actually an option in php.ini to switch on the $HTTP_*_VAR
variables, although it's off by default in PHP 5. It's still better in
my opinion to use the $_* superglobals ($_POST, $_GET etc), but if
you've got hundreds of scripts and no time to convert them (or you're
running phpBB, which relies on the deprecated behaviour), then enabled
register_long_arrays in php.ini.

Paul

--
Data Circle
http://datacircle.org

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