目录列表脚本 - 小修复 - INDEX.PHP“self”

时间:2012-09-24 13:25:27

标签: php listview directory

有一个我发现最有用的脚本。它可以在下面找到:

Directory Listing Script - Version 3

IT有各种各样的功能,我用它来查看我正在处理的所有网站。然而,这是一个我无法找到解决方案的问题。我已尝试过开发者网站,但评论的最后一个回复是July 06, 2012 at 1:50 am

这是一个很棒的功能。

    /*
Index files - The follow array contains all the index files
that will be used if $displayindex (above) is set to true.
Feel free to add, delete or alter these
*/

$indexfiles = array (
                'index.html',
                'index.htm',
                'index.php',
                'default.htm',
                'default.html'
            );

因此,当if找到上面的文件时,它会执行它。

脚本的名称是index.php但是当我上面列出的'index.php'时它不起作用。如果我将脚本重命名为'start.php'然后它可以工作,但我必须点击它,因为它正在寻找index.php。

由于脚本很长,我建议下载它,看看是否有点杂乱。

我的问题:我需要编辑什么才能加载index.php。目前它不存在于上述代码中。

由于

1 个答案:

答案 0 :(得分:0)

改变了PHP ini的一部分。一切正常。