[TriLUG] the PHP plot thickens
Greg Brown
gregbrown at mindspring.com
Thu Jul 8 21:43:45 EDT 2004
Well, GD does actually work. Here's my sample "code" from a page I
named gdtest.php:
<?php
$image = ImageCreate(200, 50);
$background_color = ImageColorAllocate($image, 255, 255, 255);
//white
$gray = ImageColorAllocate($image, 204, 204, 204); //gray
ImageFilledRectangle($image, 50, 10, 150, 40, $gray);
header('Content-type: image/png');
ImagePNG($image);
?>
This is supposed to create a gray rectangle on the webpage.. and it
does. So GD works.
Now on to figure out why my barcodes don't.
Greg
On Thursday, Jul 8, 2004, at 18:04 US/Eastern, Greg Brown wrote:
> Well, I finally read ALL of my phpinfo() and sure enough:
>
> GD Support
> enabled
> GD Version
> bundled (2.0.12 compatible)
> FreeType Support
> enabled
> FreeType Linkage
> with freetype
> GIF Read Support
> enabled
> JPG Support
> enabled
> PNG Support
> enabled
> WBMP Support
> enabled
> XBM Support
> enabled
>
> GD is enabled. Why it's not working is a whole other thing. I'll dig
> down into it and see what I can come up with, if anything.
>
> Greg
> --
> TriLUG mailing list :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
More information about the TriLUG
mailing list