Re: [PHP] Is the GD module standard?



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. |
`------------------------------------------------------------'
.



Relevant Pages

  • Is the GD module standard?
    ... At first, I didn't understand that it was a module issue, because I thought the imagepng() function was standard in PHP. ... So my assumption that imagepngwill be available on any standard installation of PHP is wrong. ... Is it that my web hosting server is lacking in what can be expected for standard PHP features? ...
    (php.general)
  • Re: Is the GD module standard?
    ... The GD module is an option that most sys admins install with php (It also ... I went with the default set of installation options that Ubuntu offers ... Recently, I uploaded my site to a web hosting server, and the CAPTCHA ...
    (php.general)
  • php-4.3.4-Win + Apache2 + XP
    ... I am completely new to PHP and am finding installation the most ... I am doing a manualinstall of PHP. ... I have put DLLs in various places so that they "can ... Is it the Apache2 server? ...
    (alt.php)
  • php-4.3.4-Win + Apache2 + XP
    ... I am completely new to PHP and am finding installation the most ... I am doing a manualinstall of PHP. ... I have put DLLs in various places so that they "can ... Is it the Apache2 server? ...
    (comp.lang.php)
  • Re: php imagepng problems
    ... > A month ago I moved the site of my school from a Win2k server to ... > worked fine (MySQL was for now left on a Windows server). ... > imagepng; ... What php errors do you get? ...
    (Fedora)