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..? Quote Link to comment 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]. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.