![]() |
PHP code to detect current domain name?
lets say i execute a script like: http://www.domain.com/script.php
what would be the php code to detect the "domain.com" and make it a variable? |
$_server[http_host]
all caps... (gfy won't let me because it has an "anti-shouting" script) |
$_server["http_host"];
? edit -- all caps |
thanks guys!
|
They said it already and I wanted to post something
|
Code:
$domain=$_SERVER["HTTP_HOST"]; |
GFYers are smart, huh?
|
Quote:
|
| All times are GMT -7. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123