Re: Problems...

From: Date: Thu, 09 Aug 2001 08:28:49 +0000
Subject: Re: Problems...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62054@lists.php.net to get a copy of this message
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 richard@zend.com address is an endangered species -- Use ceo@l-i-e.com 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ó <Lietuva@xxx.lt> Newsgroups: php.general To: <php-general@lists.php.net> 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 > Lietuva@xxx.lt >

« previous php.general (#62054) next »