lets say you want to show your domain name with a script for your website. you can use this:

PHP CODE:
<?php
echo $_SERVER['HTTP_HOST'];
?>


OUTPUT: wallpaperama.com

hope this helps