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 Display Server Date and Time
PHP Remove empty space
PHP Registering REST Images in WordPress with PHP
PHP Advanced Miltidimension Arrays
PHP Timezone Conversion Tool
PHP Quick Sort
PHP Bubble Sort
PHP Measuring PHP Execution Time
PHP Months array