Location: PHPKode > projects > Ardguest > image.php
<?
/*-----------------------------------------------------
COPYRIGHT NOTICE
Copyright (c) 2001 - 2006, Ketut Aryadana
All Rights Reserved

Email : hide@address.com

This code is provided As Is with no warranty expressed or implied. 
I am not liable for anything that results from your use of this code.
------------------------------------------------------*/
session_start();
$string = $_SESSION['secc'];
$str1 = substr($string,0,2);
$str2 = substr($string,2,2);
header("Content-type: image/jpeg");
$ardimg = @imagecreate(40, 20) or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($ardimg,150,150,150);
$text_color = imagecolorallocate($ardimg,0,0,0);
imagestring($ardimg,5,2,0,$str1,$text_color);
$text_color = imagecolorallocate($ardimg,255,255,255);
imagestring($ardimg,6,19,5,$str2,$text_color);
imagejpeg($ardimg);
imagedestroy($ardimg);
?> 
Return current item: Ardguest