PHP Classes

File: polls.php

Recommend this page to a friend!
  Classes of Nguyen Duy Quang  >  Draw stars for polls system  >  polls.php  >  Download  
File: polls.php
Role: Example script
Content type: text/plain
Description: Example with large stars
Class: Draw stars for polls system
Draw graphical percentage bars made of star icons
Author: By
Last change: New Update
Date: 12 years ago
Size: 518 bytes


Class file image Download
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);
// free memory