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
Did you know?Explore Trending and Topic pages for more stories like this.



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

Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploade

Warehouse Management
Hi,

On our system, we have two storage locations ( A and B ) where A is the main factory

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

help with this code please?
Hello,

I am trying to build a remote upload script for my image hosting site.

I am usi

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

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

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

mysq_num_rows
Hi,

I want to use:

Code: if(mysql_num_rows($ergebnis2)==2)
how can the value 2, be

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