Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- - Get Alexa Rank
- - Gets the alexa rank for a website based on the URL
- $url - The url to get the alexa rank for
- */
- public function getAlexaRank($url)
- {
- $xml = simplexml_load_file("http://data.alexa.com/data?cli=10&url=" . $url);
- if(isset($xml->SD)) return $xml->SD->REACH->attributes();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement