Want to have it display www.mydomain.com and reflect whatever domain it's on.

Comments

trailerparkopera’s picture

$domain = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
print $domain; 

You can style this however you want by adding tags in front of, and behind this.

espirates’s picture

cool thanks, is there anyway to display it without /index.php ? it currently appears as domain/index.php

update: I removed the second bit and it displayed the way I was looking for.