Deserteye Posted October 13, 2006 Share Posted October 13, 2006 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..? Link to comment https://forums.phpfreaks.com/topic/23812-list-files/ Share on other sites More sharing options...
trq Posted October 13, 2006 Share Posted October 13, 2006 Take a look at [url=http://au.php.net/manual/en/class.dir.php]dir[/url]. Link to comment https://forums.phpfreaks.com/topic/23812-list-files/#findComment-108153 Share on other sites More sharing options...
Deserteye Posted October 13, 2006 Author Share Posted October 13, 2006 [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? Link to comment https://forums.phpfreaks.com/topic/23812-list-files/#findComment-108543 Share on other sites More sharing options...
Orio Posted October 13, 2006 Share Posted October 13, 2006 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. Link to comment https://forums.phpfreaks.com/topic/23812-list-files/#findComment-108547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.