Jump to content

Archived

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

DarKneZz

header problems

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites
Create a page that has the text you want on it. Then on that same page "Call" this 'random' pic you are reffering to.

Share this post


Link to post
Share on other sites
I guess [b]cunoodle2[/b] was refering to [b]hitman6003[/b] post. I would recomend hitman6003's way. and not there is no call functions.

Share this post


Link to post
Share on other sites

×

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.