无法包含位于同一父目录中的文件。
这是文件结构
- ROOT
-> source_code
-> functions
-> FileFunction.php
-> template
-> WebContent.php
我想在WebContent.php文件中包含FileFunction.php但是,它给了我一个警告说无法在目录中找到文件。
以下是我在WebContent.php文件中写的内容
include("../functions/FileFunction.php");