【发布时间】:2012-02-11 18:37:46
【问题描述】:
我安装并激活了execPHP插件并使用了这个
<?php echo "hello"; ?>
<?php include ("/test/test.php") ?>
在 wordpress 的 tinyMCE 中。
我可以看到正确输出的 hello,但随后我看到了这个错误;
警告:include(/test/test.php) [function.include]:无法打开流:D:\Hosting\5291199\html\sites\Main\wp-content\plugins\ 中没有这样的文件或目录exec-php\includes\runtime.php(42) : eval()'d 代码在第 3 行
警告:include() [function.include]:在 D:\Hosting\5291199\html\ 中打开 '/test/test.php' 以包含 (include_path='.;C:\php5\pear') 失败sites\Main\wp-content\plugins\exec-php\includes\runtime.php(42) : eval()'d code on line 3
我确定,/test/test.php 存在!它有有效的 php 代码...
【问题讨论】:
-
只是为了确保您有一个文件
D:\test\test.php?第一个/使它在根目录中查找它...