count.php 路径不对是这样的提示了。 Warning: main(../coun/count.php): failed to open stream: No such file or directory in D:\index.php on line 3Fatal error: main(): Failed opening required '../coun/count.php' (include_path='.;c:\php4\pear') in D:\index.php on line 3
Warning: main(../coun/count.php): failed to open stream: No such file or directory in D:\index.php on line 3Fatal error: main(): Failed opening required '../coun/count.php' (include_path='.;c:\php4\pear') in D:\index.php on line 3
包含文件不在include_path中时需要一个绝对路径,可用realpath函数来构造。其实
include_path表示的不也是绝对路径吗?