Re: php errors while displaying database fields

From: Date: Thu, 13 Mar 2003 08:36:01 +0000
Subject: Re: php errors while displaying database fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139456@lists.php.net to get a copy of this message
At 23:30 12.03.2003, Boulytchev, Vasiliy said: --------------------[snip]-------------------- > I have searched the archives, and have found nothing on these errors >I am getting. Here is the apache error logs capture: > >PHP Notice: Undefined index: REMOTE_ADDR in >/home/www/customflagcompany/phpshop/modules/admin/lib/ps_session.inc on >line 39 >PHP Notice: Undefined variable: page in >/home/www/customflagcompany/phpshop/bin/index.php3 on line 53 --------------------[snip]-------------------- These are notices only, not errors (notices being the least severe level of issues PHP may warn you about). You may adjust the error reporting level with the error_reporting() function, or the corresponding setting in the php.ini file. "Undefined index": this means that the associative array doesn't have an index field with a particular name defined. PHP will return null in this case. Workaround: if (array_key_exists('REMOTE_ADDR'))... "Undefined variable": the variable you're using has not been defined and never been assigned to. PHP will return null in this case. Workaround: if (isset($page))... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#139456) next »