我正在尝试重新使用php文件进行分配。 所以在index.php文件XAMPP服务器404页面未找到
require '.././library/Slim/Slim.php';
以下行给我的错误信息:
404 Page Not Found
The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our homepage at the link below.
文件夹库是一个退步相对于index.php文件。 该文件存在,我相信路径是正确的,因为当我改变行
require '.././library/Slim/Slim2.php'; //file Slim2.php not present
我收到此错误信息,而不是
Warning: require(.././library/Slim/Slim.php2): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/Julio/Temperature/api/index.php on line 6
Fatal error: require(): Failed opening required '.././library/Slim/Slim.php2' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /Applications/XAMPP/xamppfiles/htdocs/Julio/Temperature/api/index.php on line 6
有什么不对? 使用MAC
一个文件夹后面是'” ../library/Slim/Slim。php';' – RiggsFolly
你是对的,但它给出了第一个错误信息。我怀疑这条道路是否是问题所在。我认为问题应该是别的 – Rossygnol
我们可以假设你已经检查到运行网络服务器的帐户可以访问该文件夹吗? – RiggsFolly