problem with global vars
| From: | Tomas Kubis | Date: | Thu, 31 Oct 2002 06:40:16 +0000 |
| Subject: | problem with global vars | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122200@lists.php.net to get a copy of this message | ||
Hello,
I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On
For example I have one script:
first.php
<?
global $a;
$a=150;
Header("Location: second.php");
?>
second.php
<?
echo $a;
echo $GLOBALS['a'];
echo "END";
?>
Where I have a bug?
Thank you very much
Tomas Kubis