【发布时间】:2013-07-03 15:57:27
【问题描述】:
回答:是网络托管的问题。
这是我的代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" lang="en" content="Test Website " />
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title</title>
</head>
<body>
<section id="wrapper">
<?php include('includes/topHeader.php'); ?>
<?php include('includes/leftSide.php'); ?>
<?php include('includes/middleSide.php'); ?>
<?php include('includes/rightSide.php'); ?>
</section>
<?php include('includes/foot.php'); ?>
</section>
</body>
</html>
质疑其他php文件没有出现在主页?
为了创建它,我使用了这个网站 http://www.1stwebdesigner.com/css/how-to-create-php-website-template/
更新 查看源显示:
<section id="wrapper">
<!--?php include('../includes/topHeader.php'); ?-->
<!--?php include('../includes/leftSide.php'); ?-->
<!--?php include('../includes/middleSide.php'); ?-->
<!--?php include('../includes/rightSide.php'); ?-->
</section>
<!--?php include('../includes/foot.php'); ?-->
【问题讨论】:
-
将
include换成require。我想这些文件不在您认为它们所在的目录中。 -
你有一个没有打开的关闭“”标签。
-
@Steve 在结束的