MyBB Community Forums

Full Version: Anyone know
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I often found that some site does not store files after uploading the files are auto transfered to another server.
How they do that?
Are you asking about file upload sites and how when you upload to them they go to a different server?
Yes yes, can u tell me how they do.
You would want to look into load balancing.
You would have to upload to your original server, then transfer the file via ftp or sftp using php to the remote server. You would then have to obtain the link to the remote server, and provide that link to the user.

For example.

User 1 uploads to the main server. The main server then send the file using sftp or ftp to the remote server (which is chosen by random in an array) and generates a link in return. User 1 can then send the link to his friends which in example would allow user 2 to connect and view the contents of the link whether it be a picture or video or anything else.
Is there any php script for that.
(2013-03-29, 12:19 PM)MySQL Wrote: [ -> ]Is there any php script for that.

Not that I know of. Most companies who do this are either 1 of 2 things.

Huge, need it and can hire people to make it.
Programmers from the start.

It's actually not that hard to do.

http://stackoverflow.com/questions/11543...figuration

read the first answer.