jagguy Posted November 13, 2006 Share Posted November 13, 2006 Hi,In my php file I want to display on web page an image and text.I don't know what header command to display.I try this but it fails so how do you display an image and text from a php file . I can display an image on its own but I don't kow how to add text as echo command fails.header("Content-type: image/jpeg, text/plain"); Link to comment https://forums.phpfreaks.com/topic/27076-image-and-text/ Share on other sites More sharing options...
printf Posted November 13, 2006 Share Posted November 13, 2006 You need (2) files, one the html file, that shows the text and contains the <img> tag that points to the second script that displays or dumps the image to the browser. Link to comment https://forums.phpfreaks.com/topic/27076-image-and-text/#findComment-123886 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.