目录列表脚本-Small fix-INDEX.PHP“;“自我”;

目录列表脚本-Small fix-INDEX.PHP“;“自我”;,php,listview,directory,Php,Listview,Directory,我发现有一张纸条最有用。详情如下: 它有各种各样的功能,我用它来查看我正在工作的所有网站。然而,这是一个问题,我还没有找到解决办法。我尝试过开发者网站,但最后一次回复是在2012年7月6日凌晨1:50时 这是一个很棒的特性 /* Index files - The follow array contains all the index files that will be used if $displayindex (above) is set to true. Feel free t

我发现有一张纸条最有用。详情如下:

它有各种各样的功能,我用它来查看我正在工作的所有网站。然而,这是一个问题,我还没有找到解决办法。我尝试过开发者网站,但最后一次回复是在2012年7月6日凌晨1:50时

这是一个很棒的特性

    /*
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。目前,如果上述代码中存在,则不存在


谢谢

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

您正在尝试从index.php执行或加载index.php吗???我没有收到你的信logic@Surace我正在尝试加载index.php。。。但是,如果我在上面的代码中包含它。它不会在根目录下加载index.php。我在脚本中有一部分代码是
if($displayindex){if(在数组中($strtolower($file),$indexfiles)){header($Location:$leadon$file”);die();'if($displayindex){if(在数组中($strtower($file),$indexfiles)){header($Location:$leadon$file”);die()
如果脚本名为index.php,它将自动运行。它不工作。