Re: PHP not returning variables!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> wrote in message 
news:0CEC8258A6E4D611BE5400306E1CC9270915AB95@xxxxxxxxxxxxxxxxxx
> [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? 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux