It's easy to see why PHP is such a popular language among web developers. This open source scripting language is easy-to-learn, yet surprisingly powerful and extensible. For example, PHP can be used to dynamically create and manipulate complex graphics through the use of extension libraries such as GD.
In this book we show you how to write PHP scripts that will create professional-looking web graphics and images "on the fly". This means that you can, for example, write a script that generates a chart showing results for an online poll, that updates the chart each time a new vote is registered. We show you how to create this, and discuss many other useful graphical techniques that can be performed through PHP.
The book is packed with useful code examples and discussion of best practices.
What will you learn?
Some of the issues we cover include:
* Resizing and thumbnail creation
* Merging, copying, cropping and rotating images
* Storing images in a database: Best practices
* Drawing lines and shapes, and color issues
* Creating frames and shadows on images
* Using text in images: fonts, size, wrapping and justification, creating buttons
* Creating professional looking graphs and charts
Who is this book for?
This book is for anyone who wants to make their PHP pages stand out from the crowd through the clever use of graphics. You might want to give a professional polish to your business' webpages, or to make your personal homepage as attractive as possible. In either case, this is the book for you.
ABOUT THE AUTHOR
|
| Allan Kent | Allan has been programming seriously for the last 7 years and other than the single blemish when he achieved a Diploma in Cobol programming, is entirely self-taught. He started his career working at the local University and now runs his own company. Allan lives in Cape Town, South Africa with his girlfriend and 5 cats. |