<?php
/*
Include this file any where by tag img and src="polls.php?percent=75" on html page
*/
include ("./cls.drawstars.php");
header("Content-type: image/png");
header("Content-Disposition: ; filename=stars$percent"."per.png;");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public");
$objStar = new drawingStar(5);
$img = $objStar->drawStar($arrPerFill, $percent);
imagepng($img);
// free memory
imagedestroy($img);
?>
|