在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;
------解决方案--------------------
加了就成字符串了 而不是函数
探讨
引用:
去掉两端的单引号
这里加了引号,为什么就错了呢
