installing GD2 for PHP5

Cheetoz

[H]ard|Gawd
Joined
Mar 3, 2003
Messages
1,972
For debian, if possible. Does anybody know where to get it? I only have regular GD, and I can't get any gallery script to work.

Fatal error: Call to undefined function gd_info()
 
Try this script first


Code:
<?
$array=gd_info ();
foreach ($array as $key=>$val) {
 
  if ($val===true) {
    $val="Enabled";
  }

  if ($val===false) {
    $val="Disabled";
  }

  echo "$key: $val <br />\n";

}
?>

if that doesn't work, you'll need to install the php-gd package.

sudo apt-get install php-gd
 
I get fatal error.

and "E: Couldn't find package php-gd"

but I do have "php5-gd is already the newest version." already
 
Back
Top