<?php include "histogram.class.php"; //set_time_limit (100); //function histogram( inputted file name , input format, output format, rating, type_fill(1 to fill)) $h = new histogram("test.jpg", "jpeg", "jpeg", $_GET["sample"], 1); $h->output();