Jump to content

[SOLVED] Any work around for printing data of two different MIME types?


Sandip

Recommended Posts

Is there any work around for  printing data of two different MIME types in same file? I am fetching images from database and at the same there is some HTML also. Once I set content type to image I cant print HTML. Printing image from database is another function. How can I print or override headers?

 

Thanks ,

Sandip

If you get have a PHP file that gets the image form the database then echo()'s it out, you can put

header("Content-type:  image/gif");

at the end to have it sent as an image (in this case gif), from there you can embed it in your HTML page with your basic img tag

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.