Problems...
| From: | Marius Pertravčius | Date: | Mon, 06 Aug 2001 00:18:42 +0000 |
| Subject: | Problems... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61369@lists.php.net to get a copy of this message | ||
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
Lietuva@xxx.lt