php - 跨多个服务器创建文件夹和文件

Here is what I normally see on a website, you create a profile, and you get your own page. For example, you create a profile at stackoverflow, you get a page at https://stackoverflow.com/users/4639104/yourname.

Using PHP I can mkdir() and fopen(), but if I have 100 webservers, do I mkdir and fopen to all 100 servers? What is the best way to handle this?

If you need to replicate files between servers you can achieve it using tools like rsync.

But you wouldn't use rsync if you really 100 servers. In that case you MUST to use a CDN (Content Delivery Network). So you can publish assets just once and access them from all your servers. There are free, cheap and very power CDN servers.