Re:RE: [PHP] [Newbie] Image Module needed ?

From: Date: Thu, 11 Jan 2001 09:45:25 +0000
Subject: Re:RE: [PHP] [Newbie] Image Module needed ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-33946@lists.php.net to get a copy of this message
Hello ! Tried with PNG , JPG and PHP extentions, with the image extentions, the files doesn't get parsed. when I use *.php it gives me a "call to undefined function" error(without even parsing the HTML). I think I scr*ed my GD instalation, going over it again... cheers ! Alain Matt Whipple wrote: > > What is the extension of the file? > > At 03:00 PM 1/9/2001 +0100, you wrote: > >Howdy, > > > >Stipid question, Why do I have the following code being output as plain > >text ?(yes, even the "<?" and "?>" are being written). > > > >It's supposed to be an Image. I do have the GD lib running... (Tried > >with Gif, Jpg, Png...) > > > >Cheers, > > > >Alain > > > >CODE: > > > ><? > >// send header > >Header("Content-Type: image/gif"); > > > >// create image and colours > >$im = ImageCreate(500, 75); > >$red = ImageColorAllocate($im, 255, 0, 0); > >$black = ImageColorAllocate($im, 0, 0, 0); > > > >// fill image > >ImageFill($im, 0, 0, $red); > > > >// write string at (210,30) in black > >ImageString($im, 4, 210, 30, "Hello John", $black); > > > >// release image > >ImageGIF($im); > >?> > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#33946) next »