I've checked with phpinfo and my web-server have PHP Version 5.2.6 and I'm trying to get the GD library to work. I've found out that PHP above 4.x.x already have it installed so it's just a matter of enabling it. I've read that you simply type this in php.ini:

extension=php_gd2.dll

The problem is just I haven't got access to the php.ini so I thought I could just add a .htaccess file in my directory but it doesn't work. I checked a document and the syntax is just php_value infront of that line, or php_path so I tried both but nothing happens. I checked a few more documents and they all say that.

Is it supose to sprout a warning? Nothing about GD shows up with phpinfo() and when I change other stuff like the extension path it doesn't change with phpinfo() so I think the server is set to not use .htaccess files. I read you'll have to fix that in the httpd.conf file, so I think I'm screwed.

I just want to check if I'm wrong or anyone have any idea that can please help me. I've been Googleing a lot and it seems to be alot of problem with GD, but usually it's people with full access to php.ini. I'm hoping this is just something really easy I'm missing, thanks 🙂

    has to be done in php.ini, talk to your host.

      Also, there is a specific way in which you alter PHP directives in a .htaccess file; it is not the same syntax as a php.ini file (which is where you'd put the extension= lines). See this manual page for more information: [man]configuration.changes[/man].

      Also note that not all PHP directives can be altered in the .htaccess file; all of the directives not listed as PHP_INI_SYSTEM on the following manual page can be changed in a .htaccess file: [man]ini.list[/man].

      EDIT: Just to clarify, dagon's advice still applies - installing and enabling extensions requires changes to the server itself as well as the php.ini config file. Only your specific host can tell you how they recommend you go about enabling the gd extension on their servers.

        Write a Reply...