| Danltn.com Name: Daniel Neville Location: Danltn.com / Nottingham, UK Join Date: May 2007
Posts: 1,185
NP$: 0.56 ( Donate)
| [SNIPPET] Get Current Domain Name This is a snippet which will show the current domain name.
Posting this as I had a few requests by people PHP Code: <?php $pageUR1 = ereg_replace("/(.+)", "", $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]);
$curdomain = str_replace("www.", "", $pageUR1);
echo $curdomain;  |