incl+本文来源gao@daima#com搞(%代@#码网
搞代gaodaima码
ude+dirname问题
在A.php中有这么一句,include ‘dirname(__FILE__).”/1.php”‘;本义是想把和A.PHP在同一路径下的1.php给包含进来,但在执行时,报错如下:
PHP Warning: include(dirname(__FILE__).”/lcsClass.php”): failed to open stream: No such file or directory in /home/ninglan.cc/test/test/MetaDataComp.php on line 4
我要怎么改呢?
——解决方案——————–
include dirname(__FILE__).”/1.php”;
——解决方案——————–
加了就成字符串了 而不是函数