初学PHP的18个基础例程
2011-07-04 09:06
281 查看
一、PHP的基本结构:
使用Include函数
<Html>
<Head>
<title>Your page Subject and domain name</title>
上面内容为我们使用的每个页面的标题,不要动。
每个页的头部:
<Meta NAME="" CONTENT="">
"" 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,使每个页面的头部都是一样的。
<?PHP include("header.php")?>
</head>
<body>
你的页的所有内容
</body>
</html>
保存为footer.php,使每个页面的底部都一样。
<? include("footer.php");?>
填写我们的版权信息
</body>
</html>
二:如何输出文本或者把文本建立连接用PHP
在PHP中如何显示文本呢?使用下面的命令:
<?php echo "Hello in php";?>
如何创建一个连接呢?
<?php echo "<a href=\"[url=http://www.webjx.com\'>www.webjx.com.com
使用Include函数
<Html>
<Head>
<title>Your page Subject and domain name</title>
上面内容为我们使用的每个页面的标题,不要动。
每个页的头部:
<Meta NAME="" CONTENT="">
"" 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,使每个页面的头部都是一样的。
<?PHP include("header.php")?>
</head>
<body>
你的页的所有内容
</body>
</html>
保存为footer.php,使每个页面的底部都一样。
<? include("footer.php");?>
填写我们的版权信息
</body>
</html>
二:如何输出文本或者把文本建立连接用PHP
在PHP中如何显示文本呢?使用下面的命令:
<?php echo "Hello in php";?>
如何创建一个连接呢?
<?php echo "<a href=\"[url=http://www.webjx.com\'>www.webjx.com.com
相关文章推荐
- 初学PHP的18个基础例程
- 初学PHP的18个基础例程
- 初学PHP的18个基础例程
- [php入门] 5、初学CSS从中记下的一些基础点(For小白)
- PHP——初学,基础
- php 安全基础 第三章 数据库及SQL
- php语法基础
- 整理php操作memcache缓存基础方法
- workman php开源服务器框架初学(一)
- php 安全基础 第八章 共享主机 安全模式
- php基础知识
- php四种基础算法
- PHP学习笔记1:基础知识快速浏览
- 初学php,从简单可见的对象开始
- JAVA初学基础知识 环境介绍
- PHP面向对象开发基础与实例
- PHP基础知识之————匿名函数(Anonymous functions)
- PHP数组基础知识总结
- php基础
- PHP基础知识总结