Very advanced PHP programmer needed for a new site design, please pm me for details including prices for a full file upload site to be coded. Thanks
im wanting a upload site developed (like megaupload) but only the files are stored on rapidshare upon upload without the uploader knowing.
Bad idea on multiple levels. As soon as the owners of rapidshare notice what you are doing, your server(s) IPs will be banned and thats all she wrote.
I agree If you want to offer an upload service build a decent infrastructure. Get a few unmetered servers from places and using FTP utilities of PHP make it push the files to specific servers. From there store which server you put it on so when you're serving the files you know which server it's from. That's how I would approach a upload service where you want a decent infrastructure.
When I want to handle large numbers of unsorted files I use the md5 of the file contents. First, that prevents multiple copies of the same file being stored on the server. It also prevents wacky filenames from mucking up your server since they'll all have 32 hex characters and no extension when actually stored on the harddrive. Second, you can use the characters of the md5 string to sort the files consistantly. For example, the first character or two could be the top level folder that the file is in. The second two characters could be the second level folder and the whole thing could be the file name stored on the server. If you have multiple drives/servers you'd then have a table that maps top level folders to servers. You then have a database to keep track of the real file names of things. You can use the md5 again to split the database into any number of tables. For cubia (which is 3.5GB of database data) I use the first two characters of the md5 of the article name to figure out which table the entry is in. That cuts the 4+ million articles into 256 easier to manage pieces. Wikipedia runs quite fast on a Godaddy account using tricks like that. You could use the md5 of the file to split the file entries into 256 tables and you could easily keep track of millions of file records with the crappiest of servers. It's all bandwidth from there.