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 Magic methods __wakeup() and __sleep() usage
PHP Schwartzian transform
PHP Regions and cities in Bulgaria
PHP PHP IP Address Validation Function
PHP PHP Function idx() for accessing array values safely
PHP Remove line from file
PHP Use CURL with proxy
PHP Even or Odd numbers
PHP GD Arrow Move
PHP List Recursive Directories