분류
php
Php script to fetch alexa rank
본문
특정 사이트의 알렉스 순위를 확인하는 스크립트...
<?
$url="365ok.co.kr";
$xml = simplexml_load_file('http://data.alexa.com/data?cli=10&dat=snbamz&url='.$url);
$rank=isset($xml->SD[1]->POPULARITY)?$xml->SD[1]->POPULARITY->attributes()->TEXT:0;
$web=(string)$xml->SD[0]->attributes()->HOST;
echo $web." has Alexa Rank ".$rank;
?>
- 이전글웹페이지에서 모든 링크 구하기 15.06.03
- 다음글강제로 다운로드하게 하는 함수 15.06.02