PHP包含在<;头>;在<;车身>;

PHP包含在<;头>;在<;车身>;,php,html,Php,Html,因此,我有以下代码: <!doctype html> <html> <head> <title>Page Title</title> <?php include("/common/includes.php"); ?> <?php include("/common/meta-data.php"); ?> </head> <body> <?php include(

因此,我有以下代码:

<!doctype html>
<html>
<head>
    <title>Page Title</title>
    <?php include("/common/includes.php"); ?>
    <?php include("/common/meta-data.php"); ?>
</head>
<body>
<?php include("/common/general_notifications.php"); ?>
<div class="container">
    <?php include("/common/header.php"); ?>
    <div class="well">
        <h3>Welcome to your portal!</h3>        
    </div>
    <?php include("/common/footer.php"); ?>
</div>
</body>
</html>
metadata.php
是:

<?php
session_start();
ob_start(); //Turn on output buffering (note the ob_flush to send the output buffer is implicit so can (and has) been omitted)
require_once("/dbase_connection.php");
require_once("/common/tools.php");
$objConn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<script type="text/javascript" src="<?php echo "//".$_SERVER["HTTP_HOST"]; ?>/store_admin/common/functions.js"></script>

<link rel="stylesheet" type="text/css" href="<?php echo "//".$_SERVER["HTTP_HOST"]; ?>/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<?php echo "//".$_SERVER["HTTP_HOST"]; ?>/css/admin.css">

在开始html之前,includes.php文件应该位于页面的最顶端,因为您输出内容,然后调用ob_start()…必须在头部某处存在不允许的内容或元素。但是,它似乎不在您共享的代码中。这一切产生的确切HTML是什么。。。?原始HTML,而不是Firefox的live DOM元素检查器。将文件转换为不带BOM的UTF8。稍后再感谢我。再次明确说明一下:这里要检查的第一件事是原始HTML输出。在浏览器中查看页面的源代码(同样,不是Firebug et al.,View source),或者在命令行上查看原始响应。如果这还不能说明
提前终止的原因,请在此处发布该HTML。根据给定的信息,我们能做的不多。
<!DOCTYPE html>
<html lang="en">
<head>
<title>This is the </title>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="admin/js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="admin/js/jquery-ui-1.8.22.custom.min.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 8]>
    <script src="../e360/admin/js/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="admin/common/functions.js"></script>

<link rel="stylesheet" type="text/css" href="admin/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="admin/css/admin.css">
<link rel="stylesheet" type="text/css" href="admin/css/store_admin.css">

</head>
<body>
<div class="message-bar" id="message-bar-notify"></div>
<div class="container">
    <header>
    <img src="/images/Logo.png" alt="Logo" />
    <div class="clearfix"></div>
    <h1 style="font-weight:bold; font-size:22px; text-align:center;">Portal</h1>
</header>
    <div class="well">
        ***content***
    </div>
    </br />
    </div>
</body>
</html>