Jump to content

gd library


Asperon

Recommended Posts

if I try

 

<?php
header("Content-type: image/png");
$im = @imagecreate(110, 20)
   or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?> 

 

 

 

nothing happens.at one point I got ablank box with the X in it

 

but I don't get the Die message either

Link to comment
https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322918
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.