File: example.php

Recommend this page to a friend!
  Classes of Dave Smith  >  PHP Ultimate Web Page Capture  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: PHP Ultimate Web Page Capture
Capture Web page as image using ScreenshotLayer
Author: By
Last change:
Date: 4 years ago
Size: 710 bytes
 

Contents

Class file image Download
<?php
/*
example usage
screenShot ver 1.0
*/

//include screenShot class
include('screenshot.class.php');

//instantiate the class with the webpage url to capture
$screenShot = new screenShot('http://www.website.com');

//display html image tag for captured webpage
$screenShot->displayImage();

/*
The following demonstrates the download and display from captured binary
of the webpage. To use, uncomment the capturePage method to capture
the binary and then uncomment either the downloadCapture or displayCapture
methods, depending on which you wish to preform.
*/

//$screenShot->capturePage();

//$screenShot->downloadCapture('test.png');

//$screenShot->displayCapture();

?>


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