kporter.porter Posted October 4, 2007 Share Posted October 4, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/71862-blank-page-caused-by-undefined-index/ Share on other sites More sharing options...
MmmVomit Posted October 4, 2007 Share Posted October 4, 2007 The element of the GLOBALS array is missing a quotation mark. Quote Link to comment https://forums.phpfreaks.com/topic/71862-blank-page-caused-by-undefined-index/#findComment-361968 Share on other sites More sharing options...
marcus Posted October 4, 2007 Share Posted October 4, 2007 $GLOBALS["$SessionName"] = md5(microtime(). $GLOBALS["REMOTE_ADDR"]); Quote Link to comment https://forums.phpfreaks.com/topic/71862-blank-page-caused-by-undefined-index/#findComment-361970 Share on other sites More sharing options...
kporter.porter Posted October 4, 2007 Author Share Posted October 4, 2007 Sorry that was a typing error when posting. It has both quotes in the actual code. I am rdping to the server so I didn't cut and paste. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/71862-blank-page-caused-by-undefined-index/#findComment-361981 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.