DarKneZz Posted March 17, 2006 Share Posted March 17, 2006 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 Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted March 17, 2006 Share Posted March 17, 2006 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] Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 17, 2006 Share Posted March 17, 2006 Create a page that has the text you want on it. Then on that same page "Call" this 'random' pic you are reffering to. Quote Link to comment Share on other sites More sharing options...
DarKneZz Posted March 18, 2006 Author Share Posted March 18, 2006 thanks, and what do you mean by call?? is that a function in php? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 18, 2006 Share Posted March 18, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.