PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 3rd, 2002, 11:34 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
URI's

k i've got 2 seperate domains pointing to the same website, i want the browser to redirect depending on which domain the user types in..

i got this little snip of code from php.net
php Code:
Original - php Code
  1.  
  2. <?
  3. $path = "http"
  4.         .($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")
  5.         ."://"
  6.         .$SERVER_NAME
  7.         .strrev(strstr(strrev($PHP_SELF),"/"));
  8. ?>

which returns the URI, but it will only return the URI that my original account was setup with, the other domain pointing to the same server will return the original URI rather than its unique self.

my question is how can i call the URI that is typed in the browser properly?

Reply With Quote
  #2  
Old July 3rd, 2002, 12:23 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: URI's

it should be under HTTP_HOST ($HTTP_SERVER_VARS["HTTP_HOST"]).

if that doesn't work, try print_r($HTTP_SERVER_VARS) and find the one that you want

Reply With Quote
  #3  
Old July 3rd, 2002, 05:17 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: URI's

thank you sir i'll try that

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > URI's


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway