Minggu, 10 Januari 2010

PHP : TEXT GAMBAR

header("Content-Type:image/jpeg");
$background=@imagecreate(100,100);
$kuning=imagecolorallocate($background,250,250,300);
$hitam=imagecolorallocate($background,0,0,0);
imagestring($background,5,10,40,"Tips PHP",$hitam);
imageJPEG($background);
imagedestroy($background);
?>

Tidak ada komentar: