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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.