gethostbyname() (funzione PHP) restituisce l’indirizzo IPv4 corrispondente a un determinato hostname.
tips&tricks
Sintassi
gethostbyname($hostname)
| parametro | descrizione |
|---|---|
| $hostname | L’hostname |
Esempi
echo gethostbyname("www.gestiolex.it");
/* RISULTATO
www.gestiolex.it
*/
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment