Fw: [PHP-WIN] GD library for jpeg?
| From: | Afan Pasalic | Date: | Thu, 30 Jan 2003 00:18:38 +0000 |
| Subject: | Fw: [PHP-WIN] GD library for jpeg? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18199@lists.php.net to get a copy of this message | ||
That would be strange - Explorer 6.0.
And hosting company is pair.com - pretty high ranked hosting co.
What could be the easiest way to check that, to be sure?
Afan
----- Original Message -----
From: Dash McElroy
To: Afan Pasalic
Sent: Wednesday, January 29, 2003 7:11 PM
Subject: Re: [PHP-WIN] GD library for jpeg?
It sounds as if your browser doesn't have support for PNG's, or you're
sending a wrong header... What browser version are you using?
Sounds like your hosting company doesn't have JPEG support built in. How
sad.
-Dash
"He's just a politician trying to save both his faces ..."
On Wed, 29 Jan 2003, Afan Pasalic wrote:
> I tried an example from php.net site:
>
> <?php
> header ("Content-type: image/png");
> $im = @imagecreate (50, 100)
> 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); ?>I'm getting some
> weird simbols/signs on screen (?PNG IHDR2dt&nPLTE???é['ËtL)But,
> when I try to use jpeg format - getting Fatal Error. Does it mean that
> my hosting company doesn't have instaled GD library that support
> jpeg?Thanks for any help.Afan