Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/1.php on line 1

Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/0.php on line 1
PHP. Руководство по PHP. 2005 (создание и продвижение сайта)
создание и продвижение сайта (вбиваю в ТОП-10, как гвозди)Настройка и сопровождение платной рекламы яндекс.директ

PHP. Руководство по PHP. 2005

gethostbyname

Пред.

След.

gethostbyname

(PHP 3, PHP 4, PHP 5)gethostbyname -- Get the IP address corresponding to a given Internet host name

Description

string gethostbyname (string hostname)

Returns the IP address of the internet host specified by hostname or a string containing the unmodified hostname on failure.

Пример 1. A simple gethostbyname() example

<?php

$ip = gethostbyname('www.example.com');

echo $ip;

?>

See also gethostbyaddr(), and gethostbynamel().

Пред.

Начало

След.

gethostbyaddr

Уровень выше

gethostbynamel

Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.

Ваше письмо×
Free Web Hosting