Isterklister Posted April 20, 2009 Share Posted April 20, 2009 Hello, I have a small problem. I have a php file showing text and images. Now I will have two images merged into one with GD and showned in this page. Here comes my small problem - the line: header ("Content-type: image/png"); Where should I put it? If I put it in my head instead of: header ("Content-type: text/html; charset=iso-8859-1"); the page cannot show the ordinary text and pictures. Thanks Isterklister Quote Link to comment Share on other sites More sharing options...
taith Posted April 20, 2009 Share Posted April 20, 2009 you have to create an image specific file... that contains the header defining it as an image... 100% seperate from your normal html file... hence you'd draw to it as <img src="image.php"> in which image.php is where you draw your php image, and set that header. Quote Link to comment Share on other sites More sharing options...
Isterklister Posted April 20, 2009 Author Share Posted April 20, 2009 Thank you. I just found the answer in http://www.phpfreaks.com/forums/index.php/topic,245995.0.html Thank You! 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.