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 PHP Functions for WordPress Page Content and Information Retrieval
PHP Get week range
PHP Headers Login System
PHP List Authors Alphabetically with First Letter as Header
PHP Scratch - repeat check
PHP Curl
PHP Text Formatting Functions
PHP GD Text
PHP File Search in directory and display
PHP "PHP Function to Get Current Page URL"