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

gethostbynamel

Пред.

След.

gethostbynamel

(PHP 3, PHP 4, PHP 5)gethostbynamel -- Get a list of IP addresses corresponding to a given Internet host name

Description

array gethostbynamel (string hostname)

Returns a list of IP addresses to which the internet host specified by hostname resolves. Returns FALSE if hostname could not be resolved.

Пример 1. gethostbynamel() example

<?php

$hosts = gethostbynamel('www.example.com');

print_r($hosts);

?>

The printout of the above program will be:
Array

([0] => 192.0.34.166

)

See also gethostbyname(), gethostbyaddr(), checkdnsrr(), getmxrr(), and the named(8) manual page.

Пред.

Начало

След.

gethostbyname

Уровень выше

getmxrr

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

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