PHP 7 Bulk Website Alexa Rank Checker Script and Display it in Table Using HTML5 & CSS3 Full Project For Beginners

PHP 7 Bulk Website Alexa Rank Checker Script and Display it in Table Using HTML5 & CSS3 Full Project For Beginners
  • Post author:
  • Post category:PHP
  • Post comments:0 Comments

 

Welcome folks today in this blog post we will be building a bulk website alexa rank checker script and display it in table using html5 and css3. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started you need to create an index.php file and copy paste the following code

 

index.php

 

<?php
// github.com/pajaar

error_reporting(0); //hhh :u
header('Content-type: text/plain');

$list = "list.txt";
$pisah = explode("\r\n",file_get_contents($list));

foreach($pisah as $res){
$lol = simplexml_load_file("http://data.alexa.com/data?cli=10&dat=snbamz&url=".$res);
if ($lol->SD[1] == null) {
echo "\n $res => idk:v";
} else {
echo "\n (".$lol->SD[1]->COUNTRY->attributes()->CODE.")";
echo " ".$res." => ";
echo " [Global:".$lol->SD[1]->POPULARITY->attributes()->TEXT."]";
echo " [Country:".$lol->SD[1]->COUNTRY->attributes()->RANK."]"; 
}
}
?>

 

 

And now we need to create the list.txt file and copy paste the following code

READ  PHP 7 Script to Encode the Local Image File to Base64 Code Full Project For Beginners

 

list.txt

 

https://codingshiksha.com
https://freemediatools.com
https://cricinfo.com
https://sitepoint.com

 

 

And now if you open your php script inside the apache server you will see the following result

 

Leave a Reply