whiteboikyle Posted June 10, 2008 Share Posted June 10, 2008 Okay well i have a new upload site i been working on for a few days. Has my login/register system and my upload system. When you register it makes you, your own folder chmod to 755 and the folder has the name you registered with on it. So when you upload it uploads to your folder. So here is an example. Index of /whitey That shows your uploads in your folder. Well i am going to make a PHP script in the folder that shows all the users images.. (limits 20 per page) but the thing is how to make it show all the images in the folder.. Decending by date.. If you could help me start this that would be great.. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 <?php //Open images directory $dir = @ dir("images/icons/"); //List files in images directory while (($file = $dir->read()) !== false) { $imagelist[$i] = array('filename' => $file , 'lastModified ' => filemtime('images/icons/'.$file)); $i++; } print_r($imagelist); $dir->close(); ?> Quote Link to comment Share on other sites More sharing options...
whiteboikyle Posted June 11, 2008 Author Share Posted June 11, 2008 Doesn't really seem to work for me. I kinda dont get it as well. Mind explaining please? Or comment it I would love you Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 11, 2008 Share Posted June 11, 2008 once a user uploads a file to your site does it have any database interaction like.. recording the upload_date and the destination.. if you have something like that you can do it with a select statement order by upload_date.. Quote Link to comment Share on other sites More sharing options...
whiteboikyle Posted June 11, 2008 Author Share Posted June 11, 2008 No it just uploads to the folder of the users name 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.