Login   Register  
PHP Classes
elePHPant
Icontem

File: PackerSample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tarcísio Xavier Gruppi  >  Image to PHP Standalone Output  >  PackerSample.php  >  Download  
File: PackerSample.php
Role: Example script
Content type: text/plain
Description: Usage of the class
Class: Image to PHP Standalone Output
Generate a class to serve a list of images
Author: By
Last change: v0.2
Date: 2009-05-25 12:07
Size: 191 bytes
 

Contents

Class file image Download
<?php
header
("Content-Type: text/plain");
require_once(
"Packer.php");

$packer = new Packer('./images','.',true);
if (!
$packer->parse()) die("ERROR");
var_dump($packer->save("Images"));