|
-
Jun 3rd, 2009, 09:08 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Identify Domain best way?
Can i use PHP to identify the domain of the site the page is currently on?
What would I use?
-
Jun 3rd, 2009, 03:31 PM
#2
Re: Identify Domain best way?
yes. you can use $_SERVER['HTTP_HOST'] to determine the domain. this will either be "domain.com" or "www.domain.com" or "subdomain.domain.com" (depending on which request you sent using the browser).
-
Jun 5th, 2009, 07:44 AM
#3
Thread Starter
Addicted Member
Re: Identify Domain best way?
Thanks It works quite well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|