After uploading my PHP project to a live server, I get this error message when accessing some pages.
Warning: Cannot modify header information - headers already sent by (output started at /home/mychoice/public_html/version-2/dashboard/includes/header.inc.html:14) in /home/mychoice/public_html/version-2/dashboard/modules/_modify_admin_select.inc.php on line 63
But when running on localhost, I do not get this error and every script is working properly.
I have checked white spaces, PHP opening closing tags, and Encoding without BOM.
But I still couldn't figure this out.
This is my header.inc.html page:
<?php # -- header.html
// This page begins the HTML header for the site.
// Check for a $page_title value:
if (!isset($page_title)) $page_title = 'Computer store | Control Panel';
?><!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title><?php echo $page_title; ?></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" type="image/ico" href="favicon.ico"/>
        <link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-precomposed.png" />
        <link rel="stylesheet" href="css/styles.css">
        <script src="js/vendor/modernizr.min.js"></script>
    </head>
    <body>
      <!--[if lt IE 7]>
        <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
      <![endif]-->
            <!-- End of header. -->
 
     
    