First of all I tried to use Server Side Maps, but I found that they need a Perl script with too many lines of code. So I came to phpbuilder and found an article from Rasmus Lerdorf : Creating Dynamic Images with PHP that shows how useful PHP and the GD library could be for that purpose. Thanx Rasmus!
This article provides two functions for converting HTML color (like #AAED43) to three RGB values ($r = 170, $g = 237, $b = 67) and converting RGB values to HTML color.
compatible
So far in Webmonkey, you've seen how PHP can be used for databasing and site navigation. It's pretty bland. In this article we're going to leave that dry stuff behind and concentrate on PHP's image-creation abilities.
PHP-GTK is an extension to PHP that enables you to develop stand alone GUI applications. These applications can run on multiple platforms. With PHP-GTK you can utilize the power of PHP using a graphical desktop application like interface. You can develop many useful kinds of database enabled desktop applications with the PHP-GTK framework.
Before we really get into things, let me clue you into something. I am not a graphic designer. I have no urge to be and have no talent to be. To put it bluntly, my graphics suck. Also, to use what you learn in this tutorial, you will need PHP 4.0.6 or higher and at least GD 2.0.1
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.