PHP Classes

File: gifpix.php

Recommend this page to a friend!
  Classes of Bulent Tezcan  >  Html_graph.php  >  gifpix.php  >  Download  
File: gifpix.php
Role: ???
Content type: text/plain
Description: script that uses Gifpix.class.php for image creation
Class: Html_graph.php
Author: By
Last change:
Date: 19 years ago
Size: 724 bytes


Class file image Download
// eg: <img src="gifpix.php?c=#FF0000" width=10 height=10> = red pix
// eg: <img src="gifpix.php width=10 height=10> = incolor pixel

require_once "./includes/Gifpix.class.php";

$gifpix = new gifpix();

//take from phpixel (, thanx tulipan
#Header( "Content-type:  image/gif");
#Header( "Expires: Wed, 11 Nov 1998 11:11:11 GMT");
#Header( "Cache-Control: no-cache");
#Header( "Cache-Control: must-revalidate");

// if # is in front of the hex-string

$a = str_replace("#", "", $_GET['c']);

if (isset($_GET['c'])) 
   // printing a incolor gif if  no $c
   print $gifpix->create($_GET['c']);
   print $gifpix->create("ff0000");
For more information send a message to info at phpclasses dot org.