O'Reilly logo

PHP 5 Recipes: A Problem-Solution Approach by Jon Stephens, Frank M. Kromann, Nathan A. Good, Lee Babin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8Working with Dynamic Imaging

Working with dynamic images in PHP 5 is easier than it has ever been. PHP 5 includes the GD extension right in the php.ini file. Simply remove the comment from the GD extension, and you are set to go. The GD library included with PHP 5 happens to be the upgraded GD2 library, which contains some useful JPG functionality that allows for true-color imaging.

Dynamic imaging becomes especially handy when dealing with servers that do not support PHP or when working with online applications that allow only Hypertext Markup Language (HTML). Because PHP allows you to embed links into a PHP document within an image's SRC tag, you can pull dynamic images from a PHP-enabled server by simply putting the uniform resource ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required