Ok, so I have tried everything I can think of and wandered the web too.. nothing seems to work.
I am trying to create an image with PHP. Which should work, but doesn't
<html>
<head></head>
<body><?php
header("Content-type: image/png");
$string = "image";
$im = imagecreatefrompng("button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?></body></html>
the error is:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\createImg\createImg.php:3) in C:\Program Files\Apache Group\Apache2\htdocs\createImg\createImg.php on line 5
have tried removing extra returns and white space in the code, in the ini files.... It's an Apapche 2 server with php 5.1.4
Please help me!!!!
Thanks in advance