Answer the question
In order to leave comments, you need to log in
How to make a file storage in php (file hosting)?
Interested in how file storages (file hosting) are arranged.
Those. there is a portal with a large number of users.
For the portal, it is required to make a file storage where all users could upload an unlimited number of files.
Moreover, files after downloading should be stored forever and one more condition is that there will be a constant search for files.
The portal is spinning on 1 server.
As I understand it, 1 server is indispensable.
What to read on the topic and how to distribute files across servers in php?
There is, for example, the main domain site.qq.
You can create an unlimited number of subdomains and bind each to a specific server.
But it is not clear how to calculate which files to store on which server, etc. etc.
Answer the question
In order to leave comments, you need to log in
What are databases for?
1. Weigh the data, check if there is enough space on the server
2. We throw the files as they arrive one by one: i.e. we have one of X servers, fill it up to 95%, and fill the next one.
3. we write to the database that server 1 is full, we write which files are located where, and to whom they belong.
...
x. Profit?!
Or are you looking for a turnkey solution? And then the question does not understand whether you can program or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question