Jump to content

header problems


DarKneZz

Recommended Posts

Hello,

Im currently working with gd library.. i making this page that dynamically generates an image using php, but the thing is i want to add some text to this page and it doesnt seem to work, i m guessing it has something to do with the header's content type, its right now set as image/gif... i just dont know how to change the header so it accepts both html codes and the image with gd lib.

anyone can help?? thanks
Link to comment
https://forums.phpfreaks.com/topic/5123-header-problems/
Share on other sites

You can't send both. It's either an image, or an html page, not both.

The best way to do what your wanting is to write your html page, then where you want the image to appear, use an img tag and for the src use the url of the page that generates the image.


[code]<h1>some html</h1><br />
<img src="./imagepage.php" alt="this is an image">[/code]

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.