Hi all I am sorry but solution may be interesting for someone... I solved this problem almost 2 weeks ago but forgot a bit so now my solution is just use function gethostbyname() to get IP address of host and then use get_headers() function...
1#!/usr/bin/php -q
2 <?php
3 $links = array(
4 'www.kg',
5 'www.inkar.info',
6 'www.sdpk.info',
7 'www.sdpk.kg',
8 'www.google.com',
9 'www.google.tre'
10 );
11
12 for ( $i = 0; $i < count($links); $i++ ) {
13 $ip = gethostbyname($links[$i]);
14
15 $valid_link = 'http://'.$ip;
16
17 if ( preg_match('/^\d+/', $ip) == 0 ) {
18 print "Unable to resolve address...\n";
19
20 continue;
21 }
22
23 printf("Link:%s; IP:%s\n", $links[$i], $ip);
24 print_r(get_headers($valid_link));
25 }
thanks for all !!!