Jump to content

Blank page caused by Undefined index


kporter.porter

Recommended Posts

I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work.  So I am trying to learn PHP and go through the site one error at a time.  If you have a idea why the upgrade caused the site to fail that would be great.

 

But in the meantime this is the problem i am stuck on.

 

I get this error now when transferring to a page

 

Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:location\Session.php on line 45.

 

That line has the following code.

 

$GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]);

 

Like I said this code worked before the upgrade.  Any idea what I can do to fix this problem?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/71862-blank-page-caused-by-undefined-index/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.