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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to