Jump to content

Headers


Jbert2

Recommended Posts

Anytime I mix my PHP that makes an image with this

 

header ( 'Content-Type: image/jpeg' );
//imagejpeg($im, "images2/". $prefix . $filename, 100);
imagejpeg($im);
imagedestroy($im);

 

 

I get header already sent. I have moved these lines every where and same thing. I need the HTML for other things.

 

 

 

THANKS

 

 

JIM

Link to comment
https://forums.phpfreaks.com/topic/113410-headers/
Share on other sites

Your problem has to do with basic HTML. To output an image on a web page, you need an <img src="url_of_the_image" alt=""> tag for each image - http://www.w3schools.com/html/html_images.asp

 

The url_of_the_image would be to your file with your code that outputs the header and the image data.

Link to comment
https://forums.phpfreaks.com/topic/113410-headers/#findComment-582721
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.