salve a tutti

ho trovato qeusto script nei script php di questo sito dove è possibile creare una sorta di barra di scorrimento:

Codice PHP:
//created and designed by ttyler333
//Will be placed on [url]http://nukewarz.com[/url]
//Feel free to download those images also
$percent $_GET['x'];
if(
$percent 100){ $percent "100";}
$percent2 $percent 2;
$image "http://nukewarz.com/images/bgprogress.gif";
$im imagecreatefromgif($image);
$src imagecreatefromgif('http://nukewarz.com/images/progresspix.gif');

imagecopy($im$src0000$percent225);

$red ImageColorAllocate ($im25500);
$blue ImageColorAllocate ($im00255);
$white ImageColorAllocate ($im200200200);
$blk ImageColorAllocate ($im000);

ImageString($im4904$percent "%"$white);
header("Content-Type: image/gif");
Imagegif($im,'',100); 
ImageDestroy ($im); 
solo che quando lo provo in locale mi da questo messaggio:
Warning: Cannot modify header information - headers already sent by (output started at D:\SITI WEB\lavori\corsionline.it\page\document\all.php:12 ) in D:\SITI WEB\lavori\corsionline.it\index.php on line 219
GIF87a��������,�����0�I��8��#P](�di�҇�l뾘 �tmk���<�������/9#O�q)mE��ꐪE]�.�+69�e!9] �w���-���,���/X {+~��h�}E�Yg�.���<���5�������7���#���������  ;