windows server 2003 - php notice Undefined index -


possible duplicate:
php: “notice: undefined variable” , “notice: undefined index”

i'm getting following php notices on web. i've check line mention in notice lines commented. further can check fix notice?

php 5.0.4 (winnt) notice: [8] undefined index: http_referer line: 4 file: d:\ipplan\www\adodb\adodb.inc.php(1) : eval()'d code notice: [8] undefined index: http_referer line: 4 file: d:\ipplan\www\adodb\adodb-time.inc.php(1) : eval()'d code notice: [8] undefined index: http_referer line: 4 file: d:\ipplan\www\adodb\adodb-iterator.inc.php(1) : eval()'d code notice: [8] undefined index: http_referer line: 4 file: d:\ipplan\www\class.dbflib.php(1) : eval()'d code notice: [8] undefined index: http_referer line: 4 file: d:\ipplan\www\config.php(1) : eval()'d code 

you are, @ point, attempting access index http_referrer in array, no value ever set index. typically because you've got $_server['http_referrer'] in code.

the fix not access array element may undefined without first checking see if it's defined (using isset()). see the php manual more information.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -