Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Logo changing
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th May 14:09
wayne
External User
 
Posts: 1
Default Logo changing


Hi,

I am running a website with more than one domain pointing to it
and was wondering if there is a way to have PHP automatically
change the logo that is displayed depending on which domain
the visitor has typed in.

For example say a visitor types in http://www.domainone.com
then the webpage will display imageone.jpg
and
if a visitor types in http://www.domaintwo.com
then the webpage will display imagetwo.jpg

Is this possible ?

Thanks in advance

Wayne.
  Reply With Quote


  sponsored links


2 17th May 14:09
paulus magnus
External User
 
Posts: 1
Default Logo changing


Yup, use the $_SERVER['HTTP_HOST'] information.

Paulus
  Reply With Quote
3 17th May 14:09
dmitry ruban
External User
 
Posts: 1
Default Logo changing


Hi Wayne,

I can use $HTTP_SERVER_VARS['SERVER_NAME'] to define what did user type in
location bar.
It goes to apache, and you're going to set UseCanonicalName Off in apache
conf.

Dima
  Reply With Quote
4 17th May 14:09
markus g. klötzer
External User
 
Posts: 1
Default Logo changing


By redirection or by IP-Pointing?

In the first case you will need to add a variable to the URI in the
second case you can use the servername to base your choice.

cu

mgk
--
Every time I jump on the bandwagon all its wheels fall off.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666