I just migrated to another server with PHP version 5.1.4.
All security images appear broken. When I call the script which generates security images, instead of image I get text:
http://myserver/sec_image.php
This is a part of my script:
...
$image = imagecreatefrompng("images/secimages/background.png");
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/png");
ImageString ($image, 5, 12, 2, $textstr, $text_color);
Imagepng($image, '', 75);