This is a basic question.. I have been learning SQL php for just over a year. I am building a great database I would like to share with my customers on their own domain/server. So, they would actually log in to my domain to update info to their domains. This makes for community type data.
Would this work:
if($_SERVER[‘HTTP_HOST’] == “www.site1.com” {
$site_id = 1;
$site_css = ‘path/tosite1.css’;
$site_images = “path/to folder/for images/site1/”;
}
if($_SERVER[‘HTTP_HOST’] == “www.site2.com” {
$site_id = 2;
$site_css = ‘path/tosite2.css’;
$site_images = “path/to folder/for images/site2/”;
}