Просмотр файла caps/captcha.php
<?php header('content-type: image/png'); $image = imagecreate(90, 30); $dark_grey = imagecolorallocate($image, 237, 237, 237); $white = imagecolorallocate($image, 000, 000, 000); $font_path = '../caps/'.rand (2,3).'.ttf'; $string= rand (100000,999999); $f=@fopen('../caps/cap.dat', 'w+'); fputs($f, $string); fclose($f); imagettftext($image, 13, 0, 9, 27, $white, $font_path, $string); imagepng($image); imagedestroy($image); ?>