I am having bit of a problem with session_start(). I know that session_start() needs to be at the top of the page. And I am doing so but still having problem. May be I am missing something. Here is what I am doing ---
init.php file :
<?php
session_start();
error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once("Database.php");
require_once("functions.php");
require_once("admin_operations.php");
require_once("general.php");
require_once("Session.php");
And I am another file call doctype.php where I am doing the followings---
<?php
require_once('config/init.php');
$sessions = new Session();
$sessions -> redirect();
?>
<!doctype html>
<html class="no-js" lang="">
<head>
</head>
<body>
</body>
</html>
Now I am still getting the errors. I don't know what I am doing wrong here. Can anyone please help me? Thanks a lot.