Page 1 of 1

need help with notice error code !! PLZ HELP

Posted: Sun Sep 14, 2003 12:32 pm
by skylinegtr
hi ,
i keep getting this error. can anyone help me ?? im tryin to run phpnuke
Notice: Undefined variable: HTTP_USER_AGENT in D:\websites\NAP\phpnuke\html\mainfile.php on line 16

Notice: No prefix specified in import_request_variables() - possible security hazard in D:\websites\NAP\phpnuke\html\mainfile.php on line 39

Notice: Undefined variable: forum_admin in D:\websites\NAP\phpnuke\html\mainfile.php on line 69
Notice: Use of undefined constant sitename - assumed 'sitename' in D:\websites\NAP\phpnuke\html\mainfile.php on line 88


is there a way to hide these errors or can someone fix them for me :) plz
link to the code cause its way to long to add to this post ,

http://www.geocities.com/skyvipegtr/error.bmp

Posted: Sun Sep 14, 2003 1:06 pm
by twigletmac
toweter wrote:you can change the error-warning in php.ini,
in the file are comments that say you what to do...
But that won't solve the problem - it'll just hide the error telling you what the problem is. Changing the error reporting to a lower level is never the way to sort things like this.

skylinegtr
Basically in your version and configuration of PHP the $HTTP_USER_AGENT variable does not exist. Try changing it to $_SERVER['HTTP_USER_AGENT'].

Mac