Re: Trouble with PHP...

From: Date: Thu, 24 Mar 2005 11:05:27 +0000
Subject: Re: Trouble with PHP...
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-27747@lists.php.net to get a copy of this message
Hi Nick, You are opening your system up wide to any evildoers, if you use this code. Please consult php-general@lists.php.net with support questions. Goba Nick wrote:
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.


« previous php.mirrors (#27747) next »