tbroush Posted April 9, 2012 Share Posted April 9, 2012 Recently we updated PHP 4 to PHP 5 and we have some code that was writing by a 3rd party which is no longer supporting their code and we cannot get the code to work. the errors are below. Thanks in advance .Notice: A non well formed numeric value encountered in /home/hannibal/public_html/CE4/mainfile.php on line 23 Notice: Undefined variable: _SESSION in /home/hannibal/public_html/CE4/mainfile.php on line 27 Notice: Undefined variable: val in /home/hannibal/public_html/CE4/mainfile.php on line 30 Notice: Undefined variable: val in /home/hannibal/public_html/CE4/mainfile.php on line 32 Notice: Undefined variable: module_preview in /home/hannibal/public_html/CE4/mainfile.php on line 119 Line 23 = $general_time = mktime(gmdate("H,i,s,m,d,y")); Line 27 thru 32 = if ($_SESSION['validated']==0) { $handle = @file(base64_decode("aHR0cDovL2NsYW5lbmdpbmUuY29tL3JlZ2tleV9maWxlcy8=").$_SERVER['HTTP_HOST']."_".$set['sitekaccess'].base64_decode("LnR4dA==")); if(is_array($handle)){list(,$val)=each($handle);} if($val==1) {$_SESSION['validated']=$val;}else{$_SESSION['validated']=0;} } return $val; Line 119 = if (!$module_preview) { Notice: Undefined index: back in /home/hannibal/public_html/CE4/index.php on line 30 . "<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" onLoad=\"return loopback('".$_GET['back']."');\" background=\"themes/$Default_Theme/$Whole_Site_BG\">\n" Quote Link to comment https://forums.phpfreaks.com/topic/260627-php-4-to-php-5-issue/ 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.