PHP Classes

File: example.php

Recommend this page to a friend!
  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: 15 years ago
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();
   

?>