Jump to content

How to start this?


whiteboikyle

Recommended Posts

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..

Link to comment
https://forums.phpfreaks.com/topic/109522-how-to-start-this/
Share on other sites

<?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();
?> 

Link to comment
https://forums.phpfreaks.com/topic/109522-how-to-start-this/#findComment-561789
Share on other sites

Archived

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

×
×
  • Create New...

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.