PHP's support for the GD library enables you to produce dynamic charts and navigation elements with relative ease.
In this hour, you learned how to use imagecreate() and imagepng() to create and output an image. You learned how to acquire color resources with imagecolorallocate() and to use color resources with imagefill() to fill areas with color. You also learned how to use line and shape functions to create outline and filled shapes. You learned how to use PHP's support for the FreeType library to work with TrueType fonts and worked through an example that wrote text to an image. Finally, you worked through a bar chart example that brought some of these techniques together into a single script.
Our next hour is timely indeed. It discusses dates and the many useful functions PHP provides to help you work with them.