Hi Gerben,

Thanks for your reply, the site will be on one server - the idea is that
there will be two domain names pointing to the server:
http://www.domain_x.com/ and http://www.domain_y.com/. Both of these domains
will have a very different interface comprised of header.php, footer.php and
a CSS file. However as both domains are pointing to the same site and set of
files they will have access to the backend files and database.

Is it possible to get the domain name from the browser and then include the
relevant file i.e.

if(get_url() ==  http://www.domain_x.com){
  include('header_x.php');
} else {
  include('header_y.php');
}

Thanks for your help

"Gerben" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Are you using 2 different servers or just one? if only one then how would
> URL X and URL Y look?
> Since X and Y will refer to a different file, my suggestion is to change
the
> include('X-header') to inlcude('Y-header') in the Y version.
>
> Some more info whould be nice
>
> "Shaun" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > I have created an online scheduling system using PHP and MySQL. The site
> is
> > uses CSS for the presentation and each page uses a header and footer
file
> so
> > that only core functionality is contained in each page. I now need to
> create
> > another site which runs using the same database and function files but
> looks
> > completely different. So the only files I would need to add here are a
new
> > header, footer and CSS file. The new site will allow limited
functionality
> > to the current site. The functionality will be limited by the options
> > viewable in the menu.
> >
> > My question is how can I configure the site such that if URL X is
entered
> > then the relevant header footer and CSS files are loaded and if URL Y is
> > entered a different header, footer and CSS file is loaded?
> >
> > Thanks for your help

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to