well surely the fact that sitea.com serves differant content from siteb.com and the fact that a user looks as sitea and siteb as differant sites?
Or are you talking like ebay.co.uk and ebay.com? for instance so same site just for differant countries.
you could always use something like a switch() based on the $_SERVER['SERVER_NAME'];
So maybe something like this:
PHP Code:
switch($_SERVER['SERVER_NAME']) { case strpos($_SERVER['SERVER_NAME'], 'sitea.com'): echo 'Your looking at www.SiteA.com'; break; case strpos($_SERVER['SERVER_NAME'], 'siteb.com'): echo 'Your looking at www.SiteB.com'; break; default: echo 'Not really sure which site your looking at...'; break; }
Not sure if that would work but hopefully it would.
I still personally think it might be better to have them seperated into seperate folders, and still use the same core files and db etc.
Hope this helps TP apriciated.
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|