Re: php and gd



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
>


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: No GD in Fedora 9
    ... I am trying to use gd for some project in php. ... package (yum install php-gd, it's in the main repositories) and restarting Apache ... repository metadata for repository: ...
    (Fedora)
  • RE: [PHP] Xampp question, pretty much 0T
    ... I suggest you look into VMWare. ... versions (player, server, etc) if you don't want Workstation (which I ... [PHP] Xampp question, pretty much 0T ... recommended it to me when I asked for an easy install of AMP. ...
    (php.general)
  • HOWTO: FreeTDS for Newbies (almost complete)
    ... One way to do that is to install FreeTDS, recompile PHP, ... You can go to freetds.org and install the RPMs on Unix or Linux ...
    (comp.lang.php)
  • Re: [SLE] updating to PHP5
    ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
    (SuSE)
  • Re: Installing PHP on SBS 2003
    ... Windows binaries at http://downloads.php.net/ilia/php-4.3.5RC1-Win32.zip ... be able to forego the next several steps required for a manual install. ... I extracted php to the root directory of my chosen drive. ... > You may then need to click on Add a new Web Service Extension to add the ...
    (microsoft.public.windows.server.sbs)