Page 1 of 1

List files script

Posted: Sun Jun 15, 2008 8:35 pm
by tr1x
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.

Re: List files script

Posted: Mon Jun 16, 2008 3:18 am
by Ollie Saunders
Your post goes against the spirit in which this board was founded.

I can direct you to glob() and filemtime() but it is unlikely anyone will write this for you unless you are willing to pay for it. Google will be a more powerful tool for finding something that has already been written.

Also this isn't very difficult to do if you familiarize yourself with the basics of PHP I think you should give it a go as long as you have some time.

Re: List files script

Posted: Mon Jun 16, 2008 8:30 am
by Ambush Commander
This is a very simple script, very good for a beginner. You should try coding it!