Jump to content

Archived

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

Deserteye

List files

Recommended Posts

I have an upload script and I want to have a File Manager for uploaded files. How would I show the files? Would I store the uploaded file names in a database or could I list all the files in a directory some how..?

Share this post


Link to post
Share on other sites
Take a look at [url=http://au.php.net/manual/en/class.dir.php]dir[/url].

Share this post


Link to post
Share on other sites
[quote author=thorpe link=topic=111354.msg451201#msg451201 date=1160706552]
Take a look at [url=http://au.php.net/manual/en/class.dir.php]dir[/url].
[/quote]
so are you suggessting I use this instead of logging them in a database?

Share this post


Link to post
Share on other sites
If the folder contains only the uploaded files, I'd suggest you to use [url=http://www.php.net/scandir]scandir()[/url]
(Note- This function requires PHP5 or greater).

Orio.

Share this post


Link to post
Share on other sites

×

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.