Hi. I\'m hoping someone will be able to share some info which will solve this problem.
I develop on a Win2k machine at home, running apache, php and mysql. I have the following code near the top of index.php :
if (!$page) {
$content = \"content/index.php\";
}
and on my machine at home, if there are no variables on the end of the url, it works fine, it sees that $page contains nothing (since it doesn\'t exist), and then sets $content accordingly.
However, when I uploaded this to a friend\'s server (he\'s running Xitami, php and mysql on a win2k box) I get the following error:
Warning: Undefined variable: page in c:/wwwroot/www.muftimag.com/subs/incognito/index.php on line 6
I tested it on index.php?page=about&ext=php and it works fine.
Does anyone have any ideas what could be causing the problem? I would assume it\'s something in the way php is configured, but I have no idea where to look.
Thanks in advance,
Pablo