- Impact
- 133
This is a snippet which will show the current domain name.
Posting this as I had a few requests by people
:bingo:
Posting this as I had a few requests by people
PHP:
<?php $pageUR1 = ereg_replace("/(.+)", "", $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]);
$curdomain = str_replace("www.", "", $pageUR1);
echo $curdomain;
:bingo:
Last edited: