• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
seegatesite header

Seegatesite.com

Seegatesite.com - Programming Tutorial , Sharing , How and Learn Together

  • TOOLS
    • Bootstrap Navbar Online Generator
    • Customize Sidebar Menu Bootstrap 3
    • Bootstrap Demo
  • ADVERTISE
  • CATEGORIES
    • Android
    • Blogging Tips
    • Database
    • CSS
    • Info Gadget
    • Javascript
    • Linux
    • PHP
    • Various
    • WordPress
  • Q&A
  • PHP
  • JAVASCRIPT
  • JQUERY
  • ANGULAR
  • WORDPRESS
  • SEO
  • REACT
🏠 » PHP » Alexa Rank Checker Script with PHP

Alexa Rank Checker Script with PHP

By Sigit Prasetya Nugroho ∙ October 23, 2014 ∙ PHP ∙ 1 Comment

Share : TwitterFacebookTelegramWhatsapp

Here i share script to check alexa rank of website. This script may be useful for those who want to find alexa rank massively.

alexa rank checker script

Table of Contents

  • 1  How Important Alexa rank or Alexa ranking for a website or blog? 
    • 1.1  Here alexa rank checker script with PHP 

 How Important Alexa rank or Alexa ranking for a website or blog? 

For those website owners who do not make the website to make money on the internet, then the Alexa rank is not very useful. However, although useless, sometimes alexa rank became a prestige, because if alexa rank is good then should be said of the website or blog is a popular blog.

Unlike the web owner who makes his web as a place to make money on the internet, alexa rank is very important. Why is it important? because the places to make money on the internet such as Text Link Advertisement, Sponsored Reviews, ReviewMe, Ask2link and webs of other money-making Alexa rank as a benchmark. The better alexa rank you have, it will be flocking also the advertisers who want to advertise on your website.

Related Articles :

  • Script to Check Alexa Rank on Flippa

I myself use this alexa rank script to check the web at Flippa massively.

 Here alexa rank checker script with PHP 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
function get_rank($domain){
$url = "http://data.alexa.com/data?cli=10&dat=snbamz&url=".$domain;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
$xml = new SimpleXMLElement($data);
if($popularity = @$xml->xpath("//POPULARITY"))
{
$rank = number_format((string)$popularity[0]['TEXT']);
}else
{
$rank = 'N/A';
}
return $rank;
}
echo '
<form method="post">
<table>
<tr><td>Domain name <br/><textarea name="url" rows="20" cols="30"></textarea></td></tr>
<tr><td ><input type="submit" value="Submit" name="submit" /></td></tr>';
echo '</table></form>';
if (isset($_POST['submit']))
{
$list=$_POST['url'];
$array=explode("\n",$list);
print_r(count($array).'<br/>');
for($i=0;$i<count($array);$i++)
{
$A=get_rank($array[$i]);
echo $array[$i].' --> '.$A.'<br/>';
}
}
?>

Okay, you can modify that alexa rank checker by your self, next time i will share how to check alexa site from flippa site. 🙂

Another PHP Related Post :

  • How To Replace String With Another String In PHP
  • Login Page – Tutorial CRUD Client and API Server Using JQuery And Lumen Part 2
  • Tutorial CRUD Client and API Server Using JQuery And Lumen Part 1
  • How To Solve Problems Illegal mix of collations (latin1_swedish_ci,IMPLICIT) In Laravel
  • How To Resolve No ‘Access-Control-Allow-Origin’ Header In Lumen
  • How To Create Custom Class In Laravel 5.5 For Beginners

Avatar for Sigit Prasetya Nugroho

About Sigit Prasetya Nugroho

This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Reader Interactions

Comments

  1. Avatar for Mohamed Elhassene BellahiMohamed Elhassene Bellahi says

    October 8, 2018 at 4:29 pm

    this code work on wamp server but don’t work on my site web
    why ?

    Reply
    • Avatar for Sigit Prasetya NugrohoSigit Prasetya Nugroho says

      October 9, 2018 at 6:36 am

      check your hosting if php curl is running well or not

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Welcome to my Home,

Avatar for Sigit Prasetya NugrohoThis site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.



Popular Articles

Checked checkbox AdminLTE Bootstrap in Jquery

November 4, 2014 By Sigit Prasetya Nugroho 7 Comments

Simple create date format validation with jqueryUI

December 21, 2014 By Sigit Prasetya Nugroho Leave a Comment

Create Simple Progress Bar for Fake Online Generator with Jquery

January 10, 2015 By Sigit Prasetya Nugroho Leave a Comment

22+ Coolest Free Jquery Plugin For Premium Theme

October 3, 2015 By Sigit Prasetya Nugroho Leave a Comment

Easy Build Your Anti Copy Paste Plugin

October 6, 2015 By Sigit Prasetya Nugroho Leave a Comment

Popular Tags

adminlte (15) adsense (13) adsense tips (4) affiliate amazon (13) amazon (12) Android (8) angular (16) angular 4 (12) angular 5 (4) asin grabber (3) Bootstrap (27) codeigniter (5) create wordpress theme (5) crud (8) css (6) free wordpress theme (7) google adsense (4) imacros (4) increase traffic (6) jquery (34) laravel (10) laravel 5 (5) learn android (5) modal dialog (5) mysql (6) nodeJs (4) optimize seo (4) pdo (6) php (30) plugin (53) pos (7) Publisher Tips (5) react (3) Reactjs (7) SEO (37) theme (17) tutorial angular (5) tutorial angular 4 (6) tutorial javascript (10) tutorial javascript beginners (4) twitter (3) widget (3) wordpress (18) wordpress plugin (13) XMLRPC (5)




  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

©2021 Seegatesite.com