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: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >To contact the list administrators, e-mail: [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]