Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Graphically Dynamic:
Zend Intro to GD
Aug 28, 2002 @ 12:44:41

In another Zend note this morning, there's a new Code Gallery Spotlight posted. This one, from Matt Wade (from CodeWalkers.com I believe) talks about creating bar graphs with PHP and the GD graphics library.

They talk about the need to make dynamic images (up-to-date information, flexibility, etc...) for your site, and how to get started with some sample images. You'll need at least PHP4 with GD enabled (GD 1.6). As usual, they give some sample code to help you make a sample image on your install, as well as make a sample bar graph to display some results from a GET string sample.

Remember, that while making these dynamic images is cool, it's not something that you'll want to do all the time (like in a header graphic or something). It makes a larger load on the system and can really add up when you start getting a lot of visitors to your site. Too bad SVG requires a plug-in for most browsers....

tagged:

Link:


Trending Topics: