Hi,
It is not about the version of PHP, but it should happen because one server has the REGISTER GLOBALS in ON, and in the other server it could be in OFF.
If you use global variables like $_GET, $_SESSION, and have the REGISTER_GLOBALS = ON, you should be careful with the names of the variables,
IE, if you set up a variable like this:
$_SESSION['name'] = "Jack Ryan";
or $_GET['name'] = "Jack Ryan";
then use a local variable:
$name = "Cathy Ryan";
the second variable will override the first one. That will not happen in a server with REGISTER_GLOBALS = OFF.
In your script you wrote:
PHP Code:
$strip['strip_id'] = $_GET['strip'];
foreach($strip as $key => $value) {
echo "key is ".$key." and value is ".$value."\n";
}
die;
You are overwriting the $_GET['strip'] variable with a new one called $strip and setting it up as an array which contains "strip_id", it makes the script messing all up.
Good Luck!