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 Muhammad Arfeen  >  Remote Picture Grabber  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: Remote Picture Grabber
Retrieve and serve remote image files
Author: By
Last change:
Date: 2009-04-10 14:37
Size: 728 bytes
 

Contents

Class file image Download
<?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();
    

?>