PHP的require()函数
共将创建3个文件,header.php为网页头部,index.php为主体内容,footer.php为底部。
header.php文件内容
<html>
<head>
<title>PHP的require()函数</title>
<style>
p{font-size:24px;color:#FF0000;}
</style>
</head>
<body>footer.php文件内容
</body> </html>
index.php主体文件内容
<?php require('header.php'); ?>
<p>Here is the content for this page</p>
<?php require('footer.php'); ?>浏览器输出内容
<html>
<head>
<title>PHP的require()函数</title>
<style>
p{font-size:24px;color:#FF0000;}
</style>
</head>
<body><p>Here is the content for this page</p>
</body>
</html>
这代码插件是什么,看起来不错啊
Crayon Syntax Highlighter