On Mon, 2007-06-04 at 12:47 +0900, Dave M G wrote: > PHP General, > > I have been using the imagepng() function in my local testing > environment for a while now to make CAPTCHA images. > > In my testing environment, I hadn't done any customization to my PHP set > up. I went with the default set of installation options that Ubuntu > offers for a LAMP server. > > Recently, I uploaded my site to a web hosting server, and the CAPTCHA > would not display. > > At first, I didn't understand that it was a module issue, because I > thought the imagepng() function was standard in PHP. > > However, by using the phpinfo() command on my hosting service, I > realized they don't have the GD module installed. > > So my assumption that imagepng() will be available on any standard > installation of PHP is wrong. > > However, I'm surprised that it wouldn't be as common as, say, the MySQL > module. > > Is it that my Ubuntu installation comes with an unusual amount of bells > and whistles? Is it that my web hosting server is lacking in what can be > expected for standard PHP features? > > I want to write code that most people can expect to run on their hosting > services without having to reconfigure their PHP installation. So, can I > expect that most servers would have the GD module? If not, what do > people usually do to manipulate images? Every host I've ever used has had GD installed. If they didn't offer GD, I'd switch. I think it's a safe bet to assume most realistic hosts have GD. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php