我在Linux服务器上有一个文件浏览器,它显示子目录和文件的directory.The代码是这样的:
if (!isset($_GET['currentdirectory'])){
$rootDirectory=opendir("./documents");
}
else {
$currentDirectory = $_GET['currentdirectory'];
$rootDirectory=opendir($currentDirectory);
}
starter($rootDirectory);函数启动器读取目录内容并打印它们。当我使用Internet Explorer、Firefox或Chrome打开文件浏览器时,所有子目录和文件都会按原样显示,但当我用Safari执行同样的操作时,opendir对某些子目录(不是全部)会失败,因此它们看起来是空的。有人能帮我解决这个问题吗?
发布于 2015-01-24 03:31:07
php在/a服务器上运行,浏览器版本无关紧要。它是UI的东西,而不是php。
https://stackoverflow.com/questions/28117250
复制相似问题