I've looked for hours but I can't find the script that I need, and I'm not good enough at PHP to write it myself, so I was wondering if someone could share some code with me. All I need is a script that will list all the files in a directory, and display the filesize next to the filename. Also.. since I have over 1,000 files in the directory, is it possible to make it display like 100 per page or something? Any help is greatly appreciated.
It's fairly easy to create something like that, check out http://www.php.net/opendir for more info or ofyou like to pay a bit please PM me and i'll create something for you
something like this? Source: phphulp.nl <? $dir = "/var/www/directory"; $exten = 'html'; if ($handle = @opendir($dir)) { while (false !== ($file = @readdir($handle))) { $bestand = $dir ."/". $file ; $ext = pathinfo($bestand); if($ext['extension'] == $exten) { echo " • <a href='/module/". $file ."' target='_blank'>". basename($file, ".php") ."</a><br>" ; } } @closedir($handle); } ?> PHP:
@godkillah; that isn't what he ment, he wanted to nagivate tru the filelisting by 100 files a page.. PS. if you like to pay, PM me and i'll create it for you!