Re: PHP Error

From: Date: Tue, 31 Dec 2002 11:51:23 +0000
Subject: Re: PHP Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129760@lists.php.net to get a copy of this message
This is just a notice, somewhere in the code is something like this if($array['index']=='something') do_something(); but $array['index'] is undefined. Should be if(is_array($array) && array_key_exists('index',$array) && $array['index']=='something') ... (which is quite long). Another option is to set up error_reporting to E_ALL & ~E_NOTICE in your php.ini (you used php.ini-recomended, right?) Dale wrote:
I was able to successfully install the php on my win2k server. I am, however, getting an error any time I try to initialize a variable. This is the error I am getting: Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132 I am not sure as to whether I forgot to do something when I installed php or whether I need to somehow modify IIS so that variable initialization will work. Thank you. Sincerely, Dale


« previous php.general (#129760) next »