im having a problem with a website iv been working on locally using easyphp server. I have now uploaded it to a webserver and where it was all working before, now I am getting php errors such as :
Call to undefined function session_status() in /home/site/public_html/index.php on line 2
Its only a simple script on the index page, but all of the other pages are suffering from the same session error problems, but it works locally which makes it even ore odd.
<?php
if (session_status() !== PHP_SESSION_ACTIVE) {session_start();}
if (isset($_SESSION['key'])) {$sessionkey = $_SESSION['key'];}else {$sessionkey = '';}
if ($sessionkey == 'sbhjbKA2bsbhjbKA209bhjbKA2bsbhjbKA209KaXff19u0bsbhjbKA209KaXff19u9Ka'){
echo '<link rel="stylesheet" href="./css/template/template.css" />';
include 'connectmysqli.php';
include 'menu.php';
}
else
{echo '<h1 style="font-family:Verdana, Geneva, sans-serif; color:red;">Access Denied !</h1>';}
?>