Draw a GD graph then store in a file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ngungo
Forum Commoner
Posts: 75
Joined: Thu Jun 08, 2006 10:45 pm

Draw a GD graph then store in a file

Post by ngungo »

I could not find a tutorial anywhere that showing how to draw a graph by GD lib functions then write to a file. Any hints would be appreciated.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Draw a GD graph then store in a file

Post by s.dot »

imagejpeg() imagepng() and imagegif() allow you to use the second parameter of the functions to save to a file.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
ngungo
Forum Commoner
Posts: 75
Joined: Thu Jun 08, 2006 10:45 pm

Re: Draw a GD graph then store in a file

Post by ngungo »

Thanks!
Post Reply