Login   Register  
PHP Classes
elePHPant
Icontem

File: polls2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 9 years ago
Size: 546 bytes
 

Contents

Class file image Download
<?php
/*
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);
    
imagepng($img);
    
    
// free memory 
    
imagedestroy($img);
?>