
17.01.2008, 15:24
|
|
Участник форума
Регистрация: 11.05.2007
Сообщений: 149
Провел на форуме: 6373157
Репутация:
247
|
|
----------------------------
PHP код:
<?php
$a =file_get_contents("http://blablabla.com/banner.html");
preg_match ("#<hr>]*>.*</hr>]*>#isU", $a, $regs);
header ("Content-type: image/png");
$im = @imagecreatetruecolor(120, 20)
or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "'.$regs[0];.'", $text_color);
imagepng($im);
imagedestroy($im);
?>
Выведет текст на чёрном фоне.
 http://ua.php.net/manual/ru/function.imagecreatetruecolor.php
|
|
|