- Forums
- PHP
- How To Get Complete Domain Name From Full Url With Php
This Page Contains information about How To Get Complete Domain Name From Full Url With Php By wallpaperama in category PHP with 12 Replies. [1122], Last Updated: Sat May 18, 2024
wallpaperama
Tue Mar 04, 2008
12 Comments
27738 Visits
if you want to know how to get the current domain name from your website in php you can do it with the
echo $_SERVER['HTTP_HOST']
this will display the domain name and the hostname like this:
www.wallpaperama.com
if this helps, please tell me your comments. i thank you for any comments. i like to know if this is not what you are looking for. how can i help you?