Jump to content

Storing A Lot Of Files....


ShibSta

Recommended Posts

I am working on a project where users will be uploading files... I know there is a 2000 file limit (or something like that) in FTP clients so it then cuts off the list even though the files still exist... I was wondering is this something I should worry about, what would be the best method of getting around this?

 

Reason it comes to my concern is because I've seen some sites get hacked and the hacker would throw in a PHP Shell script into the folder with 2000+ files and the owner of the site will never know it's in there... I don't plan on getting hacked but I may distribute my script to a few friends and just want things to be easy to keep track of and maintain...

 

Thanks,

- ShibSta

Link to comment
https://forums.phpfreaks.com/topic/76100-storing-a-lot-of-files/
Share on other sites

I think Jenk was responding to the "PHP Shell script" part - a user uploading such a file wouldn't be a problem if you served the file as a download rather than letting the hacker point his browser at the url and running it.

 

Regarding the 2000+ files... easiest thing is to split into folders based on the date the file was uploaded, such as year/month.

2007/11

2007/12

2008/01

...etc

 

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.