只是想知道我在这里做错了什么。我一直在设置一个linux开发环境。如果我做这样的事情:
include 'test.php';
它工作得很好。
如果我然后将我的 test.php 文件移动到一个名为 test 的文件夹中并执行以下操作:
include 'test/test.php';
它失败。到底是怎么回事?
我也试过:
include '/var/www/site/test/test.php';
include '/test/test.php';
include '../test/test.php';
等等,没有运气。