Does the GD2 extension come with PHP?
Asked Answered
E

3

11

Does the GD2 extension come with PHP by default? If yes, since what version does it happen? Is it enabled by default?

thanks (:

Ecospecies answered 9/5, 2011 at 12:20 Comment(2)
(PHP 4 >= 4.0.7, PHP 5) ... although I am not 100% sure.Nantucket
hmm, i don't think so...the manual suggests that GD(one) does not come with php until version 4.3. unfortunately it doesn't give me any clue about GD2.Ecospecies
F
5

GD isn't compiled with PHP by default but is included with many binary distributions of PHP.

Full details/instructions are here: http://www.php.net/manual/en/image.setup.php

Fado answered 9/5, 2011 at 12:23 Comment(0)
N
5

On windows system, it is generally delivered but not installed. You can enable it by decommenting the section in the php.ini file.

On Linux systems (Debian & Ubuntu), on a default installation, it is activated. Rather than doing it in command line as suggests : Atticus, give it a try with a php info!

<?php 
    phpinfo();
?>

If GD is installed, you'll see it on that page. ;)

Napoli answered 9/5, 2011 at 12:45 Comment(2)
also you can do "php -i" this command in terminal to see your phpinfo.Tightrope
Or even better: php -i|grep GD. This will show you only the GD related info.Mansion
U
1

Hmm I think i had to install mine on my server

do you have access to your server or is it a shared server?

If so -- check if php5-gd is installed

Upheave answered 9/5, 2011 at 12:22 Comment(2)
my doubt is merely informative. i need the info for a paperwork and i couldn't find it objetively in the manual :(Ecospecies
you can install php5-gd with the following command. If it doesn't exist, it will download. If it exists, it will not download again. "sudo yum install php5-gd"Tightrope

© 2022 - 2024 — McMap. All rights reserved.