I've a problem with the script below. The return of the image is different on a Windows and Linux apache server.
The windows machine gives the right image:
http://www.nandro.nl/ttftest/goed.png
And the linux machine gives the wrong image:
http://www.nandro.nl/ttftest/fout.png
The server where the site must be run on, is the Linux. So how do i resolve this problem?
<?php
header("Content-type: image/png");
$im = imagecreate (150, 150);
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagettftext ($im, 12, 45, 25, 125, $text_color, "arial.ttf", "Hallo, ik ben een test.");
imagepng ($im);
imagedestroy ($im);
?>