CODE
LIBARY.COM
Home
/
PHP
PHP Get Website Hostname
Get Website Hostname
<? $host = gethostbyname("www.google.com"); echo $host; ?>
$host = gethostbyname("www.google.com"); echo $host; ?>
Copy to Clipboard
Related Snippets
PHP Web Based Regex Functions - Email, Username, Domain Validation
PHP Count Files in Directory
PHP Miltidimension array example
PHP Convert Camel Case to Snake Case in PHP
PHP Web-based Image Resizer Function in PHP
PHP My Proxy
PHP Roman Numbers convert
PHP Multifile Upload
PHP Rename filenames to numbers
PHP Find Emails Address in Text