Old post, but I thought I'd bring it back up. Put this code in a PHP file and include it into your page. Then do what -NB- said and echo getAlexaRank('http://www.yoursite.com/'); Code (markup): By the way -NB-, shame on you for stealing my code! I showed you how to do this and did not want it passed around the internet
PHP5: function hmm($url) { $xml = simplexml_load_file('http://data.alexa.com/data?cli=10&dat=s&url=' . $url); return $xml->SD->POPULARITY['TEXT']; } echo hmm('digitalpoint.com'); PHP: Sorry if it's old
im really clueless about this php.. is this the code for increasing the alexa rank? or just display the alexa rank in your site?
Sooooo... I know I can get stuff like domain owner contact info if I have an account and use the Alexa API (like manilodisan's script); does anyone know if this is available using the scripts above from aditya_sfs or -hb- ?