Revision: 18865
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 10, 2009 18:06 by irm
Initial Code
<? header("Content-type: image/png"); header("Refresh: 30"); $txt = 'temp.txt'; #файл откуда брать $txt2 = 'not.txt'; #куда запиÑать те что были показаны $img = imagecreate(200,200); $b = imagecolorallocate($img,0,0,0); $w = imagecolorallocate($img,255,255,255); $f = "arial.ttf"; #файл шрифта $file=file($txt); imagettftext($img,10,0,20,100,$w,$f,$file[0]); imagepng($img); $w = fopen($txt2,"a"); fwrite($w,$file[0]); fclose($w); unset($file[0]); $fp=fopen($txt,"w"); fputs($fp,implode("",$file)); fclose($fp); ?>
Initial URL
http://forum.zloy.bz/showthread.php?t=91235
Initial Description
by m13579m
Initial Title
PHP Image-from-Text Generator
Initial Tags
php, image, web
Initial Language
PHP