PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of chema garrido  >  SEO Report  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example usage
Class: SEO Report
Get site SEO statistics from multiple sites
Author: By
Last change:
Date: 10 years ago
Size: 1,074 bytes


Class file image Download
include 'seoreport.php';

ini_set('max_execution_time', 180);

$url = (isset($_GET['url']))?$_GET['url']:'';

$meta_tags = seoreport::meta_info($url);

    //first check if site online
if ($meta_tags!==FALSE)
$stats = array();
$stats['meta'] = $meta_tags;
$stats['alexa']['rank'] = seoreport::alexa_rank($url);
$stats['alexa']['links'] = seoreport::alexa_links($url);

$stats['domain']['WOT_rating'] = seoreport::WOT_rating($url);
$stats['domain']['domain_age'] = seoreport::domain_age($url);
$stats['social']['twitter'] = seoreport::tweet_count($url);
$stats['social']['facebook'] = seoreport::facebook_shares($url);
$stats['google']['page_rank'] = seoreport::page_rank($url);
$stats['google']['page_speed'] = seoreport::page_speed($url);
$stats['google']['pages'] = seoreport::google_pages($url);
$stats['google']['links'] = seoreport::google_links($url);


'Site not online. '.$url;

For more information send a message to info at phpclasses dot org.