Thread: Help needed :)
View Single Post
Old 05-08-2008, 01:28 PM   · #4
tres
You are here: X
 
tres's Avatar
 
Location: US
Trader Rating: (22)
Join Date: Oct 2003
Posts: 420
NP$: 59.75 (Donate)
tres is a jewel in the roughtres is a jewel in the roughtres is a jewel in the rough
To show the name of the domain name as listed in apache use:
PHP Code:
$_SERVER['HTTP_HOST']


To show the name of the URL the visitor has come from use:
PHP Code:
$_SERVER['HTTP_REFERRER']
Note: http_referrer may be blank for a number of reasons.

Javascript to display the domain name,
Code:
<script type="text/javascript"> document.write(document.domain); </script>


Please register or log-in into NamePros to hide ads
__________________
tres is offline   Reply With Quote
Site Sponsors
Thousand Dollar Profits Hunting Moon Get Your Site Linked at LinkedKeywords.com
Advertise your business at NamePros
All times are GMT -7. The time now is 01:50 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.