
29.09.2008, 00:42
|
|
Reservists Of Antichat - Level 6
Регистрация: 23.05.2008
Сообщений: 756
Провел на форуме: 9257858
Репутация:
979
|
|
PHP код:
<?php
$rand = rand(10000,99999);
for($i = 0; $i < 5; $i++)
{
$arr[$i] = substr($rand, $i, 1);
}
$im = imagecreate(89,20);
imagecolorallocate($im, 34, 34, 34);
$a = 0;
for($i = 0; $i < 5;$i++)
{
$color = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 3, $a += 14, 4, $arr[$i], $color);
}
header("Content-type: image/jpeg");
imagejpeg($im, '', 100);
?>
вот пример,вроде isis писал его.
|
|
|