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

Simpler method of getting variables from mysql
Hi Guys,

I'm trying to streamline my CMS's code and as I was writing a new page it occured to

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

Error In Syntax
I got this error:

Code: Parse error: syntax error, unexpected '>' in /home/bucket/publ

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

Database/Table Collation
What is the Database, and table collations used for? i don't understand what there used for since co

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

Email to a friend script problems
I have this send-to-a-friend script with 2 issues:


1) When you open the form popup on a p

email form (cannot find the problem)
Hello there. I've been having trouble with an email form. Can't find the problem really. I've tested

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

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