PHP Classes

File: 2_ASCII

Recommend this page to a friend!
  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: 18 years ago
Size: 294 bytes


Class file image Download

// 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") ;
$test->data ;