Today we upgraded php from 4.4.7 to 5.2.5

I expect lots of scripts not working or in need of an update.

First thing i notice it's i have some scripts that i could link like:

http://mysite.com/script.php?action=show

and it would show lets say the users in a database, inside the script it would be like:

<?php
if ($action == "show") {
mysql_connect("localhost", " etc etc etc
die;
}
echo "hello world";
?>

But now the script just go directly to hello world when called like:
http://mysite.com/script.php?action=show

please help so i could update them.

thanks.

    [man]register_globals[/man]

    For a quick fix, rather than turning register_globals on, you could consider inserting [man]import_request_variables[/man] at the start of the affected scripts. (The "real" fix would be to reference the applicable super-global array, instead, wherever such data is to be accessed.)

      Write a Reply...