Jump to content

Script to list all files in pwd as links?


tmallen

Recommended Posts

I've noticed that glob() doesn't return my hidden files. However, the following method does. Is there an option to return hidden files with glob()?

if ($handle = opendir('./')) {
while (false !== ($file = readdir($handle))) {
	echo "<li><a href=\"$file\">$file</a></li>";
}
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.