Forum Moderators: coopster

Message Too Old, No Replies

Header() and image/jpeg

How to combine HTML/PHP

         

cyclic

7:57 am on Sep 18, 2002 (gmt 0)

10+ Year Member



I have a page with mixed content that requires Header("Content-type:image/jpeg"). As the header can only be sent once per page is there a way to have both HTML and image/jpeg on the same page?

andreasfriedrich

12:40 pm on Sep 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a page with mixed content

Not quite clear what you want to do. Do you want to send an HTML document with an inline image?

If so you send the HTML document first and then the browser will request the image which you send that with the appropriate header.

If you want to send a multipart MIME messages have a look at Sending MIME e-mail from PHP [zend.com]

cyclic

4:41 pm on Sep 18, 2002 (gmt 0)

10+ Year Member



I take it I send the image from a script with the appropriate header. This is for getting binary data from a database onto an html page.