Closed

Fatal error: Call to undefined function session_register() - repost

This project received 29 bids from talented freelancers with an average bid price of £23 GBP.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
£10 - £20 GBP
Total Bids
29
Project Description

Have placed website with another host and placed all correct usernames and passwords in correctly but cannot connect to datababse and get following error:

Fatal error: Call to undefined function session_register()

The old SQL datababse was running PHP 3.5.8.1 and new version is [url removed, login to view] with new hosting provider

Please see following file that has problem

<?
Error_Reporting(E_ALL & ~E_NOTICE);
unset($l);
session_start();
session_register($l);
include ("includes/[url removed, login to view]");
include ("[url removed, login to view]");
include ("includes/[url removed, login to view]");
// CHECK AND UPDATE TRAFFIC STATS
$date=date("d/m/y");
$user_ip_address = $HTTP_SERVER_VARS["REMOTE_ADDR"]; /*Fetch the user's IP Address */
$traffic_stats=mysql_fetch_array(mysql_query("select * from jsgamingcenter_traffic WHERE date='$date'", $casdb));
if ($traffic_stats[1]!=$date){
mysql_query("INSERT INTO `jsgamingcenter_traffic` VALUES('', '$date', '0', '0')", $casdb);
}
$tuserip=mysql_fetch_array(mysql_query("select * from jsgamingcenter_users WHERE ip_reg='$user_ip_address'", $casdb));
if ($tuserip[ip_reg]==$user_ip_address){
mysql_query("UPDATE jsgamingcenter_traffic set visitors_re=visitors_re+'1' where date='$date'", $casdb);
}
if ($tuserip[ip_reg]!=$user_ip_address){
mysql_query("UPDATE jsgamingcenter_traffic set visitors_new=visitors_new+'1' where date='$date'", $casdb);
}
/***********************************************************************
Check if user is logged on and display the appropriate page
************************************************************************/
if($page=="" or $page==" "){
header("Location: [url removed, login to view]");
}
if($page!="" && $page!=" "){
if(!isset($l)){


include ("templates/template_$[url removed, login to view]");
}
else{


include ("templates/template_$[url removed, login to view]");

}
}
?>

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online