How To Disabled Notice: Undefined Variable: Error In Index.php On Line 95
how to disabled notice: undefined variable: error in index.php on line 95
how, to, disabled, notice, undefined, variable, error, in, indexphp, on, line, 95
How To Disabled Notice: Undefined Variable: Error In Index.php On Line 95
Post Description: how to disabled notice: undefined variable: error in index.php on line 95
POST# 429
Posted On: Fri Feb 29, 2008 12:01 pm
pacoman
Topic: How To Disabled Notice: Undefined Variable: Error In Index.php On Line 95
hi, i have a script and for some reason i keep getting this error,

Disabled Notice: Undefined variable: error in index.php on line 95

can you tell me why? i've never seen this error before?

thanks


Sun Jul 15, 2007 8:28 pm
1
hostman
Reply #1019
you are getting this error because you're most likely are not using global variables.

one way to solve this is to disabled Display_errors in php.ini - CLICK HERE TO LEARN HOW

another way is to disable it in your php, CLICK HERE to disable error reporting

but the best way to do this is to make your script better.

if you have something like: if($_POST['foo']) or if($_REQUEST['foo']) change it to look like this:

if(isset($_POST['foo']))

so i just added the isset() function.

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload