Php > Graphics
Thermometer Goal Graph
Thermometer Goal Graph The solution was to write a small PHP script that could be called to build the graphic on the fly. The script is called as the source of an image tag. It expects the following parameters: Current - Current Amount Raised (eg. 3000) Goal - Goal Amount (eg. 10000) Width - Width of the chart in pixels (60 is a good start) Height - Height of the chart in pixels (150 is a good start) Font - The font used (1=small, 2=bigger...) To generate the graph at the right using the above example setting, the script would be called from your html as follows (assuming you have named the script thermometer.php and it's in the same directory as the html file):
This script requires access to a web server that supports PHP and that has the "GD" graphic library installed. -------- Script Starts Here -------
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage