Re: php and gd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My bet is that you have neglected to install the 'php-gd' package.
If this is the case do:

1) yum install php-gd
2) verify the configuration files
3) Restart apache

test this php code:
(verbatim from http://us3.php.net/manual/en/function.imagecreate.php)

<?php
header("Content-type: image/png");
$im = @imagecreate(100, 50)
   or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>

Have fun,

- mike

> Hi,
>
> I am running FC4. Installed Php and gd from rpms. How can i make php
> "read"
> gd module?
>
> regards
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux