The code below displays: domain.com/ but I would like to display just domain.com without the / <?php $hostname = $_SERVER['SERVER_NAME']; $hostname = str_replace('www.', '', $hostname); echo $hostname . htmlentities($_SERVER['REQUEST_URI']);?> Also how would I display domain.com in all uppercase letters; DOMAIN.COM
HELP!
3
The code below displays: domain.com/ but I would like to display just domain.com without the /
Also how would I display domain.com in all uppercase letters; DOMAIN.COM
Thanks in advance!
Also how would I display domain.com in all uppercase letters; DOMAIN.COM
Thanks in advance!
- buncoh
- RobinInTexas
Next Topics on Trending Feed
-
3