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;
?
When you redirect, you lose your variables. This means that you must
send them in some form to the other script. If you change your redirect
command to the following, you will see that $a gets transferred and
echoed in the second script as well as the first:
Header(Location: second.php?a=$a);
: "olinux" [EMAIL PROTECTED]
To: "PHP-DB" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 2:06 PM
Subject: [PHP-DB] global vars
I am working with global variables and functions, specifically calling a
function inside another function.
I checked the onlin