PX : code

Simple Pictures by Ben O'Neill
Download this code


<?php

/*
**  Copyright 2000 Ben O'Neill
** sheepcow@neorift.net
**
** This shows how to get a php file
** to return a picture, so you can
** put it in an HTML file like this:
**
** <IMG SRC="showimage.php3">
*/

$imagefile "logo.gif";

Header("Content-type: image/gif");
readfile("$imagefile");
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.