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 DavidLanz  >  Hippo Picture Base64 Encode  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: upload and class usage demo page
Class: Hippo Picture Base64 Encode
Encode GIF or JPEG image files as a PHP script
Author: By
Last change:
Date: 2005-07-25 20:56
Size: 464 bytes
 

Contents

Class file image Download
<?php
  
include('hippo_base64_pic.php');

  
$fuobj = new hippo_base64_pic();
  
$fuobj->upload_form 'fupload';
  
$fuobj->upload_dir "data/";
  
$fuobj->write_filename ='data/hippo_base64_image.php';
  
$fuobj->chunk_per_char 10;
  
  if(!
$fuobj->upload())
  {
    print 
$fuobj->show_error();
    exit(
0);
  }
  
  echo 
"<a href=".$fuobj->write_filename.">".$fuobj->write_filename."</a><hr>";
  echo 
"<a href=index.php>Re-Upload Picture</a>";
?>