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 Link to comment https://forums.phpfreaks.com/topic/154953-solved-gd-and-output-header/ 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. Link to comment https://forums.phpfreaks.com/topic/154953-solved-gd-and-output-header/#findComment-815073 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! Link to comment https://forums.phpfreaks.com/topic/154953-solved-gd-and-output-header/#findComment-815076 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.