Cancelled

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

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]");

}

}

?>

Skills: MySQL, PHP

See more: problem stats, sql l, php fatal error, fatal, placed call, fatal error php, mysql else insert, php select insert sql, mysql update else, mysql function update, call function, fetch mysql, mysql sql function, running error, mysql update values, mysql fetch, update values mysql, mysql update function, mysql error 2013, mysql insert update , connect sql website, config error, function insert file, sql traffic, php traffic stats

About the Employer:
( 5 reviews ) watford, United Kingdom

Project ID: #5199748

24 freelancers are bidding on average £23 for this job

TopSEOExpertscom

Hi, I am ready to fix the problem for you, but I'll need ftp access. I welcome the opportunity to work with you on this exciting project. I am confident that I can make a valuable contribution to this undertaking. More

£22 GBP in 1 day
(197 Reviews)
7.7
KatrinaQ

A proposal has not yet been provided

£19 GBP in 1 day
(594 Reviews)
7.6
sureshdevi

I can fix this session register problem on your new hosting server. I will complete this work in next few hours. I will be available online from 1 am UTC/GMT to 5 pm UTC/GMT, fulltime individual freelancer. Looking More

£12 GBP in 1 day
(643 Reviews)
7.5
imszone

Hi, Your problem is not in the database, it is related to a deprecated function between your old server and the new one, I can fix it in no time for you. Regards, mb

£22 GBP in 1 day
(52 Reviews)
6.7
DrTech76

Hello there! It's probably 5.4 not 4.x, the php I mean. The session_register was remnoved from php following 5.4 version. Anyway, this is fixable, though i probably affects more than just this single file. Kind More

£30 GBP in 1 day
(298 Reviews)
6.7
Rautella

let me fixed it for you. I am interested and ready to start working on it now. Kindly accept my bid and setup the milestone. Thanks

£22 GBP in 1 day
(181 Reviews)
6.5
dttri

I have developed as well as troubleshooted many PHP applications before. Let me solve this issue for you. Regards

£11 GBP in 1 day
(134 Reviews)
6.2
akiles99

Sounds like the same project as posted yesterday . I will help you fix the issue today . Thanks, akiles

£23 GBP in 1 day
(128 Reviews)
5.9
phpraza

php mysql expert here with 2years of experience in web development. I am available now and ready to do this for you. lets do it

£11 GBP in 1 day
(99 Reviews)
5.7
sriraj1233

Dear alltech2013, I have four and half years of professional experience in designing, developing scripts and integrating scripts in php and mysql. I have gone through your description. I am ready to start right now. More

£12 GBP in 0 days
(83 Reviews)
5.6
techvolcano

Hi, We are ready to work. Can we discuss project now? Please have a look on our feedback also Thanks

£20 GBP in 3 days
(72 Reviews)
5.5
virtual7

I know how to fix it. I will do it properly and will not require any payment until it is 100% done. Thank you.

£22 GBP in 1 day
(43 Reviews)
5.4
eComOS

Hello alltech2013, I have gone through your outsourced requirement "Fatal error: Call to undefined function session_register() - repost" and have analyzed that I have right credentials (MySQL, PHP) to execute your More

£25 GBP in 0 days
(52 Reviews)
5.2
ntlabs

this is ntlabs.from sri Lanka. I can complete the job right away. this is ntlabs.from sri Lanka. I can complete the job right away. this is ntlabs.from sri Lanka. I can complete the job right away.

£20 GBP in 0 days
(62 Reviews)
5.1
twhiting9275

hello, This is no easy fix. Basically, your script is written for an outdated version of PHP. The session_register function has not existed for quite some time (years, in fact, since 5.0 was released). There are a co More

£157 GBP in 7 days
(24 Reviews)
4.8
SergeyH

Hi Can fix your script quickly and start right now. My skills: 3+ years relationship :) with • LAMP(LEMP) (Linux server optimization) • eCommerce (Prestashop, WooCommerce) • PHP • Smarty • JavaScript, jQuery More

£15 GBP in 0 days
(18 Reviews)
4.6
arfharwinder

Hi, please let me know the complete fatal error and the site where you're getting it. I will fix it right away. Thanks

£20 GBP in 1 day
(31 Reviews)
4.3
mdshahidjmi

Hi, We are expert in web development and have 5+ years of experience and have complete more than 100+ website for our local as well as International client and you may be the one. We have understand your requirement More

£18 GBP in 1 day
(7 Reviews)
4.2
CristianPopa

Hello. I am ready to start right now. It seems that is a problem with a file path and not the DB. I need to check all the files and DB to see where the wrong path is. Please message me if you are interested to have it More

£18 GBP in 0 days
(4 Reviews)
2.7
servergurus

It is due to some functions being defunct in the new php version. I can fix this rightaway. Please let me know I will complete this in a couple of hours. Thanks, Tom

£19 GBP in 1 day
(2 Reviews)
2.1