Click to See Complete Forum and Search --> : PHP 4.2.1 have a bug???


Anon
06-29-2002, 10:40 PM
I hava a PHP script about a web game. It is very good working on php 4.1.1 and mysql and linux.
Yesterday, my system update PHP 4.2.1 and test PHP Ming. OHH, my PHP script have a error. Variables can't PUT.

For Example:
<?
if (empty($j)) {
echo "null";
} else {
echo $j;
}
?>
<a href=my.php?j=1>Test</a>

This script always echo "null". it can't found J.

Why?

And i copy this script to windows and php4.2.1 , error too? and ,copy it to php4.1.1, it work well.

Why?

Anon
06-30-2002, 09:50 AM
You need to enable register_globals in php.ini

Anon
06-30-2002, 09:52 PM
Please tell me, Why does PHP that?