Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Yasir Siddiqui  >  PHP Web Page Thumbnail Generator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Page Thumbnail Generator
Generate thumbnail images of pages with Thumbalizr
Author: By
Last change:
Date: 1 year ago
Size: 275 bytes
 

Contents

Class file image Download
<?php

include_once ("Webpagepthumbnail.class.php");

$obj = new Webpagethumbnail();

try {
    
    
$thumnailpath $obj->getThumbnail("http://bing.com");  
}

catch (
Exception $e) {
    
      echo 
$e->getMessage();
      exit;
}
?>

<img src="<?php echo $thumnailpath;?>">