
PHP Return GIF
By: a guest on
Apr 28th, 2012 | syntax:
PHP | size: 0.25 KB | hits: 20 | expires: Never
<?php
header("content-type: image/gif");
if (file_exists("/home/public_html/".$_GET["image"].".gif"))
die(file_get_contents("/home/public_html/".$_GET["image"].".gif"));
else
die(file_get_contents("/home/public_html/unavailable.gif"));
?>