Get rid of the Content-type for now, and see if you have any error
messages...
You'll need Content-type to make it work, but if you have a PHP error
message on any of the subsequent lines, they don't make a valid image.
You could also re-direct errors to the Apache log (or other) and view that
as a better long-term but slightly higher implementation-cost solution.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Oòkó?öårzòËèkó <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 05, 2001 7:18 PM
Subject: Problems...
> Sveiki, php-general,
>
> I have win32, apache, PHP 4.0.6.
> I want to work with graphic files (GD).
> There is lines in my php.ini:
>
> extension_dir = c:\php\extensions
>
> extension=php_gd.dll
>
> I have this script:
> <?php
> Header( "Content-type: image/jpeg");
> /* Header( "Content-type: image/gif"); */
> $image = imagecreate(200,200);
> $maroon = ImageColorAllocate($image,100,0,0);
> $white = ImageColorAllocate($image,255,255,255);
> $green = ImageColorAllocate($image,0,100,0);
> ImageFilledRectangle($image,0,0,200,200,$white);
> ImageRectangle($image,10,10,190,190,$maroon);
> ImageFilledRectangle($image,50,70,150,150,$maroon);
> ImageJPEG($image);
> /*ImageGIF($image); */
> ImageDestroy($image);
> ?>
>
> But nothing hapens....
> Where am I making a mistake? Help me, please
>
> ____________________________
> 2001.08.06, pirmadienis
> Marius Pertravèius
> iCQ: #125733984
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]