PHP Classes

File: polls2.php

Recommend this page to a friend!
  Classes of Nguyen Duy Quang  >  Draw stars for polls system  >  polls2.php  >  Download  
File: polls2.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: 11 years ago
Size: 546 bytes


Class file image Download
Include this file on any html page by image tag with src=polls2.php?percent=86
include ("./cls.drawstar2.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);
$arrPerFill = getArray4FillStar($percent);
$img = $objStar->drawStar($arrPerFill);
// free memory