Trouble with PHP...
| From: | Nick | Date: | Thu, 24 Mar 2005 03:38:57 +0000 |
| Subject: | Trouble with PHP... | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-27746@lists.php.net to get a copy of this message | ||
Alright, here's the problem. I'm using a simple "Get/Include" method, and
it's giving notes.
Say I have something like this:
<?php
$page = $_GET[page];
if ($page == "")
{include ('main.php');}
else {include ($page);}
?>
Ok, it does include the correct pages, BUT, it also gives notices for some reason. Here's an
example:
Notice: Use of undefined constant page - assumed 'page in C:\Program Files\Abyss Web
Server\htdocs\cof\index.php on line #
I don't have control to the server or to the PHP to fix that, my friend does, but we don't
know how to make it stop giving notices. It also gives on like this:
Notice: Undefined index: sx in C:\Program Files\Abyss Web Server\htdocs\cof\index.php on line 131
If you could help, please reply to me at this email or at: The.Lord.Xero@gmail.com
Any help is greatly appreciated, these notices are annoying. If you would like to see a live example
of what I mean, check out my site, which is hosted on my friend's server: http://fearthisgod.com/cof
Thanks again,
Nick S.