I have a dedicated server and under root i went to Software - Apache Update and on the list i saw GD (version 2.0.15) i am assuming thats GD Library. i checked that and started the build. After everything was done i go back and GD is still unchecked! Did it install? how do i check if it is installed? how do i install it if i did it wrong?
do a <?php phpinfo(); ?> PHP: and search for the gd section. if there isnt, then you dont have it installed hope it helps
Thanks i did that and found this: GD Support enabled GD Version bundled (2.0.28 compatible) So it seems like its there...thanks!
if you phpinfo showing gd is installed but if the photos are still not showing, then it might be a problem of your script. I think you should recheck your script.
Just an easier way to do the check for GD in a program <?php $data = phpinfo(); if (preg_match("GD Support enabled",$data)) { // GD is there } ?> Code (markup):
That won't work, and it wouldn't be the best way even if it did. Try this: <?php if (extension_loaded('gd') && function_exists('gd_info')) { echo "It looks like GD is installed"; } ?> PHP: You could also spit some info about your GD version by doing this: <?php echo "<pre>"; var_dump(gd_info()); echo "</pre>"; ?> PHP:
type this in your shell: echo "<? phpinfo();" | php | grep GD You will see something like: GD Support => enabled GD Version => 2.0