[Wolves] php and GD
Chris Ball
chris at mnemonik.net
Mon Feb 28 12:13:47 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It should be part of the source, and you should already have it
installed. Have you tried using any GD code to test this?
here's a nice quick bit for you
[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);
[/php]
if that doesn't work, then you need to reconfigure your PHP from source
./configure --with_GD[location of gd on computer]
HTH
- --
Chris Ball
chris [at] mnemonik [dot] net
http://www.mnemonik.net
http://www.nationstates.net/cgi-bin/index.cgi/target=display_nation/nation=goalva
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCIwlJpEpYc3sNdbgRAnJYAJ9LA3vHzsii1wsL6KQacqnDJyUoYQCfWfAJ
De2WmTuO6VaOx6ilxxu5dQw=
=BGSX
-----END PGP SIGNATURE-----
More information about the Wolves
mailing list