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, $src, 0, 0, 0, 0, $percent2, 25);
$red = ImageColorAllocate ($im, 255, 0, 0);
$blue = ImageColorAllocate ($im, 0, 0, 255);
$white = ImageColorAllocate ($im, 200, 200, 200);
$blk = ImageColorAllocate ($im, 0, 0, 0);
ImageString($im, 4, 90, 4, $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���#��������� ;