PHP URL variable passing inconsistancy
Posted by: dvereb
Posted on: 2008-02-01 18:29:00
I'm having trouble with the exact same php file in two different sections of my website. When i pass variables in one, it doesn't accept them. Usually I do something like ?variable=1, and then later on access it via something like if($variable > 0) and it will work fine. Now I made a subdomain, and I can't get it to work.
Here are the sites with and example file thats exactly the same:
http://dvereb.com/var.php?variable=lol
http://osms.dvereb.com/var.php?variable=lol
var.php consists of:
<?php
echo"\$variable: " . $variable;
?>
One site works, the other does not. Any ideas why?