Jump to content

Recommended Posts

EDIT: reread your post and it is different than I initially thought.

 

Assuming you are hosting multiple sites using the same code-base you would likely have some different static content (i.e. flat-files) and either separate databases or a single database where all the records have a foreign key for each site. So, in your logic you would need to check the domain name used to access the site (check the $_SERVER global var), then find the root of the domain name. Once you have that, use the value to determine the correct folder(s) and the correct databases or site ID to use.

Link to comment
https://forums.phpfreaks.com/topic/237222-server-settings/#findComment-1219110
Share on other sites

Its all done in PHP like tumblr of Facebook.

So like tumblr the user would need to set the A record of the domain and then they would need to enter in (on my site) their domain and then it needs to (magically, how?) show their page.......

 

So how does the PHP code work?

Link to comment
https://forums.phpfreaks.com/topic/237222-server-settings/#findComment-1221466
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.