getAlexaRank($url) function not working


Posted on 16th Feb 2014 07:03 pm by admin

I have made a function to get alexa rank
the site is here: http://mytestsite.rack111.com/1

but the Alexa rank is showing up blank and I dont know why can someone please tell me if there is something wrong with my code



Code:
function getAlexaRank ($url) {
$xml = simplexml_load_file("http://data.alexa.com/data?cli=10&dat=s&url=$url");
return $xml->SD->POPULARITY['TEXT'];

}

No comments posted yet

Your Answer:

Login to answer
95 Like 6 Dislike
Previous forums Next forums
Other forums

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

A little help in c#
i am doing a simple paint program using c# i want to draw with the mouse so i wrote the code of the

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

images aren't rendering
I'm trying to call a JPG file from within PHP (in an effort to hide the actual JPG folder). The imag

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

opening a window with after form submission
I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.
<

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Need help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

Connection Timeout
I'm using xmii 12.0

I'm calling a transaction as a web service from a windows application

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash