Re: PHP not returning variables!

From: Date: Thu, 01 Dec 2005 17:05:44 +0000
Subject: Re: PHP not returning variables!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26559@lists.php.net to get a copy of this message
Thanks for the reply :) That works fine. But its wierd how the old code doesnt work on my new server. Before, the following code worked fine when requesting "test.php?var=myvalue" <? global $var; echo $var; ?> But on the new server it doesnt, it produces a blank page. The following however, does work. <? echo $_GET['var']; ?> Any idea why there acting differently? Matt :) "Jay Blanchard" <jay.blanchard@THERMON.com> wrote in message news:0CEC8258A6E4D611BE5400306E1CC9270915AB95@smtmb.tmc.local... > [snip] > For example: > "Page.php?var=value" produces the same document as just "Page.php" when > they > > should produce different documents. > > I know it is not a bug in my script as I've had the script running fine on > my other server (PHP5, Apache 2.0, Windows XP Pro) > [/snip] > > You have echo'd $_GET['var'] and was the proper value?

« previous php.windows (#26559) next »