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

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg

Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
I dont see the problem with this, I always get Parse error: parse error in C:wampwwwlogspagesme

Save cookie to DB
I'm working on a pixel tracking script for an incentive website and I need to use an ASP script to s

Secure FTP
Hi experts,
There is no SFTP action in MII workbench.
This means it needs developing custo

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

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