<?php
session_start();
$rand = rand(10000,99999);
$_SESSION['code']=$rand;
$im = @imagecreate(38, 15);
$background_color = imagecolorallocate($im, 200, 235, 220);
$col = ImageColorAllocate($im,0,0,0);
ImageString($im,3,2,1,$rand,$col);
header('Content-Type: image/gif');
header('Cache-control: no-cache, no-store');
ImageGIF($im);
?>