댓글 검색 목록

[php] Php script to fetch alexa rank

페이지 정보

작성자 운영자 작성일 15-06-03 09:03 조회 2,541 댓글 0

특정 사이트의 알렉스 순위를 확인하는 스크립트...

 

<?

$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;

?> 

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.