Login   Register  
PHP Classes

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: 5 years ago
Size: 728 bytes


Class file image Download

        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