i have a litle problem with a script
its a thingy to edit a png
but i get this strange error:
Warning: Cannot modify header information - headers already sent by (output started at /customers/tomtenberge.nl/tomtenberge.nl/httpd.www/tracklist/test.php:1) in /customers/tomtenberge.nl/tomtenberge.nl/httpd.www/tracklist/test.php on line 2
‰PNG IHDRæ£þÓêPLTE ér¿`ŽLÚIDAT(‘åбAàŸMhF®!ža’+(„WÙË&ª;‘xë”Z…‡Ði'J*D£RÑ+®0wÁ¯`«ÙýòÏfø³Sc CYeŸGEý˜õà«*T,(´ªšðñ£Peí|&H»;?&¦±éÖ³½54IÇ%¥öÉé¿×‘[¢•!‘i¡)1kg$;ÇP E‚˜o™¶²,{»—z÷·†…Âå:`޾´¹Ì”¨Ž,³fSñƒ8Ÿ¨Æ7ȽíEµ¯E´ª,ÒNçÛ@µ4&‚øg••Gé2ü¶'€£D?Ñ<_FIEND®B`‚
its with this script:
<?php
header ("Content-type: image/png");
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color);
ImagePng ($img_handle);
?>
as seen on http://www.tomtenberge.nl/tracklist/test.php
how do i make this work?