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'];

}

95 Like 6 Dislike
Previous php-forum Next php-forum
Other php-forum

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

MYSQL INSERT ID NOT WORKING
Code: $id = mysql_insert_id();
header("Location: ./?view=$id");
Why $id pulling blan

isset undefined variable
Hi all,

Hope someone can point out the obvious. I've a log in script, if you dont enter a use

want a code for uploading and downloading
i m trying to upload and download to my site..i need upload and download code ...i use a code for up

PHP doesn't send my mail
Hi all, I found this and used it to send mail. Simple contact form with some required fields. The va

php web service error
hey guys,
I'm working on a project requires the use of web services. I've been trying a few tutor

MASS PM
Hello all, I'm trying to send mass private messages to users in my database but keep getting an erro

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

Big Problem!! Please help
Hi Guys,

Im making a website for a friend have encountered a really annoying problem. When ev

Inserting a check in checkbox from array value
Hello all,
I have a bit of code that works for a select option box, but does not work for my chec

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