Hey All,
I know this will seem like a dumb question, but I haven't found a solution in the forums or Google yet.
Here is a simplified version of what is happening:
I have a URL:
demo.php?name=jeff
Inside the file I have the line:
<?
echo "Name = ($jeff)";
?>
(I have tried using <?php ?> tags as well) Everytime I load the page, it prints
"Name = ()"
This works fine for me on my other machine. Both are running Windows XP, PHP 5.x, Apache 2.x, and MySQL 4.x. I know that PHP is installed correctly since I can access MySQL and invoke all PHP functions that I've tried. I have been using PHP for years (at a novice level at best) and never had problems accessing variables from the URL this way.
The only difference I can think of between the two machines is that the one where it works has only one user and the one that doesn't has several users and this resulted in a slight installation difference to put PHP in the classpath, but as I said, PHP is working on both machines, which is so puzzling.
Any help would be greatly appreciated!
Thanks!
~ Jeff