You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
378 B
PHP
14 lines
378 B
PHP
<?php
|
|
|
|
function getBarCY($_url) {
|
|
$_uri = "http://bar-navig.yandex.ru/u?ver=2&url=".urlencode("http://".$_url)."&show=1";
|
|
$fd = @fopen($_uri, "r");
|
|
if ($fd) {
|
|
while ($buffer = fgets($fd, 4096)) $haystack.=$buffer;
|
|
fclose($fd);
|
|
preg_match("/ |
|
return (int) $cy[2];
|
|
} else return 0;
|
|
}
|
|
|
|
?>
|