PHP学习2:include("1.txt")和require("1.txt")的区别

      网络工程师 2007-11-27 21:50

<?
include("2.txt");
echo "下面的文字";
?>

引入失败的话  继续显示下面的文字  warning

————————————————————————————

<?
require("2.txt");
echo "下面的文字";
?>

引入失败即停止显示下面的文字 error --这个要求比较高的网页里用

————————————————————————————
require 也可以once 即可require_once 只跑一次

————————————————————————————
//单行注解

/* many
many
*/

________________


define("copyright","ok baby  my name is baby");
echo copyright;
?>

________________________

double浮点数 即有小数点的数

回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}