【发布时间】:2015-01-21 14:02:13
【问题描述】:
我的 html, css, javascript... 在目录 /www/ 在他们自己的文件夹中 /www/html, /www/css, /www/js... web root 位于 /www/www/
我像这样在我的 php 中使用函数 readfile
readfile("../html/home.html");
要读取 html 文件,但我会从 html 文件中获得大量 404 客户端。
<script src="../js/javascript_file.js"></script>
会给出 404
为什么会发生这种情况?有解决方法吗?
【问题讨论】:
-
可能是文件夹的权限问题,你可以改,但是有安全隐患。