0
有一個我發現最有用的腳本。它可以發現如下:目錄列表腳本 - 小修正 - INDEX.PHP「自我」
Directory Listing Script - Version 3
它具有功能variaty我用它查看我所有的網站,我的工作。然而,這是一個問題,我目前還找不到解決方案。我曾嘗試過開發者網站,但最後的評論回覆是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'
);
因此,如果發現上面的文件執行它。
腳本的名稱是index.php,但是當我有上面列出的'index.php'它不起作用。如果我將腳本重命名爲'start.php',那麼它可以工作,但我必須點擊它,因爲它正在尋找index.php。
由於腳本很長,我建議下載它,並看看從雜亂中保存一點。
我的問題:我需要編輯什麼,以便index.php加載。目前它不會出現在上面的代碼中。
謝謝
你想從index.php執行或加載index.php?我沒有得到你的邏輯 – Surace
@Surace我嘗試加載index.php ...但是如果我將它包含在上面的代碼中。它不會在根目錄加載index.php。只是想出「無法找到這個頁面」。 – Arthor
我在腳本的代碼是'的一部分,如果($的DisplayIndex){ \t \t \t \t如果(in_array(用strtolower($文件),$ indexfiles)){ \t \t \t \t \t標題(「位置:$ leadon $ file「); \t \t \t \t \t模具();'如果($的DisplayIndex){ \t \t \t \t如果(in_array(用strtolower($文件),$ indexfiles)){ \t \t \t \t \t標題(「位置:$ LEADON $文件「); \t \t \t \t \t die();' – Arthor