Archive for the tag: require

include和require的区别

PHP No Comments »

刚刚两个文章分别说了require和require_once以及include和include_once的区别,现在再说一下include和require的区别。
也很简单,用例子来说话,写两个php文件,名字为test1.php  和test2.php,注意相同的目录中,不要存在一个名字是test999.php的文件。

Read the rest of this entry »

require和require_once的区别

PHP No Comments »

php中的引入,有个函数是require,还有一个是require_once,说说这两个函数的区别。很简单,用例子来说话。
先写三个文件,分别是 test1.php  test2.php  test3.php
Read the rest of this entry »