Home > php教程 > php手册 > body text

初学PHP的18个基础例程

WBOY
Release: 2016-06-21 08:58:37
Original
871 people have browsed it

初学

  本站原创内容,转载请注明出处网页教学网

  如何创建我们的第一个PHP页面呢?非常简单的!选择我们使用的一个最好的设计工具,当然你也可以 只使用记事本。创建之后记得要保存为扩展名为PHP的文件,然后传到我们的服务器上。

  在编写PHP程序之前通常我们需要配置我们的环境,也就是说服务器要支持PHP才能行啊

  一、PHP的基本结构:

  使用Include函数



Your page Subject and domain name

  上面内容为我们使用的每个页面的标题,不要动。

  每个页的头部:


"" your others meta tag
"" your others meta tag
"" your others meta tag
"" your others meta tag
"" your others meta tag
"" your others meta tag
"" your others meta tag
重要的javascripts代码放这
CSS设置放这

  上述内容保存为header.php,使每个页面的头部都是一样的。


  你的页的所有内容


  保存为footer.php,使每个页面的底部都一样。

include("footer.php");?>

  填写我们的版权信息

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!