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
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
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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