<?php
 
 
    /*
 
    
 
        Example script that make use of Picture Grabber.
 
    
 
    */
 
 
    include_once "PictureGrabber.inc.php";
 
    
 
    $PictureGrabber = new PictureGrabber();
 
    
 
    $PictureGrabber->RemoFileURL="http://files.phpclasses.org/graphics/elephpant_logo.gif";   // Remote Image
 
    $PictureGrabber->LocalFilePath="tmp";                                                                                                            // Local Path (Make sure this directory should be writable
 
                                                                                                                                                                                        // and have permission to write files
 
    $PictureGrabber->LocalFileName="myNewfile";                                                                                                // New Local File
 
    $PictureGrabber->ShowPicture=1;                                                                                                                        // Weather show picture or simply return new file 
 
    
 
    $PictureGrabber->GrabFile();
 
    
 
 
?>
 
 |