PHP Classes
elePHPant
Icontem

Hippo Picture Base64 Encode: Encode GIF or JPEG image files as a PHP script

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-07-25 (10 years ago) RSS 2.0 feedStarStarStar 59%Total: 1,606 All time: 2,356 This week: 1,027Up
Version License Categories
hippo_base64_pic 1.0.0GNU General Publi...Graphics, Code Generation
Description Author

This class can encode GIF or JPEG image files in the form of PHP script file that serves the original files when it is executed.

The class can handle a Web form for uploading the image files.

After receiving the uploaded files, the class generates a PHP script that contains PHP statements for decoding and outputting the image files that are encoded by this class using base64 algorithm.

The class features:

- Support binary files with the file name extensions .jpg and .gif
- Apply several types of constraints to the uploaded files
- Configurable path for the output PHP file

Picture of DavidLanz
Name: DavidLanz <contact>
Classes: 5 packages by
Country: Taiwan Taiwan
Age: ???
All time rank: 1681 in Taiwan Taiwan
Week rank: 1548 Down4 in Taiwan Taiwan Down
Innovation award
Innovation award
Nominee: 2x

Details
    Hippo PIC Base64 Encode Class 1.0
    ------------------------------------------------------------------------

    Hippo PIC Base64 Encode Class can encode .jpg/.gif to base64 .php file.
    
    Functions:
    <> support .jpg/.gif file extensions.
    <> set chunk characters.
    <> set output directory and filename.
    <> file upload class inside, could also handle upload exceptions.
    <> direct write into .php file for pic filename protection.
    
    There is a workable demo page within this package, for more information plz read from 'index.php'.


    Copyright (c) 2004-2005
    ------------------------------------------------------------------------
	  DavidLanz 	   <davidlanz.tw@yahoo.com.tw>
	
    - Documentation written and maintained by:
      DavidLanz

    ------------------------------------------------------------------------

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    In addition, as a special exception, TOMO <groove at spencernetwork dot org> 
    gives permission to link the code of this program with the FTP library 
    (or with modified versions of LIB-FTP that use the same license as LIB-FTP), 
    and distribute linked combinations including the two.  You must obey 
    the GNU General Public License in all respects for all of the code used 
    other than LIB-FTP.  If you modify this file, you may extend this exception 
    to your version of the file, but you are not obligated to do so.  If 
    you do not wish to do so, delete this exception statement from your version.

    In addition, as a special exception, Edd Dumbill <edd at usefulinc dot com>
    gives permission to link the code of this program with the XML-RPC library 
    (or with modified versions of XML-RPC that use the same license as XML-RPC), 
    and distribute linked combinations including the two.  You must obey 
    the GNU General Public License in all respects for all of the code used 
    other than XML-RPC.  If you modify this file, you may extend this exception 
    to your version of the file, but you are not obligated to do so.  If 
    you do not wish to do so, delete this exception statement from your version.


    Credits:
    ------------------------------------------------------------------------
    DavidLanz      <davidlanz.tw@yahoo.com.tw>
    

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example upload and class usage demo page
Plain text file hippo_base64_pic.php Class main Hippo PIC Base64 Encode class
Accessible without login Plain text file index.php Aux. default web page
Accessible without login Plain text file INSTALL Doc. the file u're reading
Accessible without login Plain text file README Doc. summary of this class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,606
This week:0
All time:2,356
This week:1,027Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1033