Hi,
I am getting the following error after uploading the file to the host:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/jassimuser/mybluefile.com/login_user.php:1) in /home/jassimuser/mybluefile.com/includes/php_header.php on line 3
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/jassimuser/mybluefile.com/login_user.php:1) in /home/jassimuser/mybluefile.com/includes/php_header.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/jassimuser/mybluefile.com/login_user.php:1) in /home/jassimuser/mybluefile.com/login_user.php on line 52
but it's working fine on my localhost.
login_user start like this:
<?php
include('includes/php_header.php');
include($_SESSION["bluefile_absolute_path"] . '/includes/Mobile_Detect.php');
include($_SESSION["bluefile_absolute_path"] . '/includes/password_hash.php');
include($_SESSION["bluefile_absolute_path"] . '/includes/connect2db.php');
and my php_header is:
<?php
ob_start();
if(!isset($_SESSION)) { session_start(); }
$_SESSION["bluefile_absolute_path"] = $_SERVER["DOCUMENT_ROOT"];
$_SESSION["bluefile_domain_name"] = "http://www.mybluefile.com/";
$_SESSION["div_max_width"] = "700";
// set max_execution_time;
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
ini_set("session.cookie_lifetime","3600"); //an hour
// report all errors;
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL & ~E_NOTICE);
// report all errors;
?>