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: 22 years ago
Size: 724 bytes
 

Contents

Class file image Download
<?php // 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 (http://www.zend.com/codex.php?id=193&single=1), 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']); } else { print $gifpix->create("ff0000"); } ?>