代码改变世界

全站调用php文件的方法

2010-09-15 16:17  LvSir  阅读(166)  评论(0)    收藏  举报

require(dirname(__FILE__).'xxx.php'); dirname(__FILE__) 返回的就是当前目录的绝对路径。