PDA

View Full Version : purpose of the empty index.html file


arkadia2006
Mon 25th Sep '06, 4:54am
Hello,

I m just curious why i see in all image directory of vbulletin an empty index.html ? what the purpose of this file ? can i delete them ?

thank you by advance
stéphane
http://www.arkadia.com

Lats
Mon 25th Sep '06, 5:57am
That's just so people can't see a directory listing of all your files.

There is an os directive to turn off directory listings however, these empty index files covers all bases.

arkadia2006
Mon 25th Sep '06, 6:36am
Thanks, but i see this code in the diagnostic.php :


if ($file == 'index.html' AND trim(file_get_contents(DIR . $directory . '/' . $file)) == '')
{
continue;
}



can i delete this index.html file peacefully ? because i don't need these file and i forbid the directory browsing...

thanks again
stéphane
http://www.arkadia.com

Lats
Mon 25th Sep '06, 6:55am
You could however, they aren't really in the way :)