----- Original Message ----
From: Jer <[EMAIL PROTECTED]>
To: php-list@yahoogroups.com
Sent: Tuesday, May 30, 2006 8:31:38 PM
Subject: [php-list] If statement depending on domain?

   I've got webspace with multiple domains pointing to it. Domain A points to one directory.
Domain B points to another directory. I've got identical sites running in each directory and I'd
like them to remain identical. However, some links need to change depending on which
directory they are in. I don't to manually change these links every time I make an update.

What argument would I use in an if statement?

[reply]
Probably something like:

if ( $_SERVER[SERVER_NAME] == "www.domainA.com" ){
    //domain A links here
}elseif ( $_SERVER[SERVER_NAME] == "www.domainB.com" ){
    //other links here
}

HTH,
-Nick
[/reply]

     



[Non-text portions of this message have been removed]



Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to