Re: how to make multiple website on one host
| From: | Larry Garfield | Date: | Sun, 03 Feb 2008 07:58:37 +0000 |
| Subject: | Re: how to make multiple website on one host | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268584@lists.php.net to get a copy of this message | ||
You can, in your code, check the $_SERVER super-global to see what domain name
was requested. You can then branch your code however you need to, just as
you can for any other conditional.
Have a look at the Drupal framework, which includes that exact feature.
On Sunday 03 February 2008, jeffry s wrote:
> i am wondering whether this can be done. i know it can.
> is it possible to make one website with the ability to host multiple
> website.
> it is something like website generator. eg: www.shopify.org
>
> let say for example i have a website www.example.org.
> i can point a domain name (www.example1.org) to the server where
> www.example.org hosted,
> and when user visit www.example1.org, it execute the same scripts as
> www.example.org with
> with different themes and website configuration.
>
> anyone have the idea?
>
> thanks
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson