[PHP-DB] global vars

2002-10-30 Thread Tomas Kubis
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; ?

Re: [PHP-DB] global vars

2002-10-30 Thread David Smith
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);

Re: [PHP-DB] global vars

2001-03-28 Thread olinux
: "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