Login   Register  
PHP Classes
elePHPant
Icontem

File: 2_ASCII

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ahmed Shreef  >  Shref Image vs ASCII  >  2_ASCII  >  Download  
File: 2_ASCII
Role: Example script
Content type: text/plain
Description: convert 2 ASCII
Class: Shref Image vs ASCII
Convert files to ASCII data and vice-versa
Author: By
Last change:
Date: 9 years ago
Size: 294 bytes
 

Contents

Class file image Download
<?php

// will read the image linux.jpg and convert it to ASCII code
// and save it in linux.txt
// then we will print the ASCII data to screen by $test->data

require "Shref_ASCIIimg.class.php";

 
$test = new Shref_ASCIIimg("linux.jpg""to""linux.txt") ;
 print 
$test->data ;

?>