Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Создание изображения 18*18
- $im = imagecreate(18, 18);
- // Белый фон, оранжевый текст
- $bg = imagecolorallocate($im, 255, 255, 255);
- $textcolor = imagecolorallocate($im, 255, 90, 0);
- // Надпись в левом верхнем углу
- imagestring($im, 100, 0, 0, ucfirst(substr(trim($_SERVER['HTTP_HOST']), 0, 2)), $textcolor);
- // Вывод изображения
- header('Content-type: image/png');
- //imagewbmp($im, 'simpletext.png');
- imagepng($im);
- imagedestroy($im);
- ?>
Add Comment
Please, Sign In to add comment