Re: Is it Possible?

From: Date: Fri, 04 Feb 2005 11:38:25 +0000
Subject: Re: Is it Possible?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208071@lists.php.net to get a copy of this message
Sagar C Nannapaneni wrote:
I'm calling a php script with <img> tag for ex: <img src="http://localhost/test.php?img=asfd"> and the test.php is as follows... test.php ------------ <? ... ... some server side validations ... readfile("abcd.gif"); ?> ----------------------------------------------- Theres no problem with this..its working fine. But i want to return some text(or Html) the browser along with the image. So is there anyway that i can send the text to the browser in this fashion. Even anyother solution other than the <img> is also Ok. Showing img is not a priority for me but sending the text is.. Any help will be greatly appreciated.. Thanks, /sagar you have to send a header containing the mime type. last example at http://www.php.net/header is a good one.


« previous php.general (#208071) next »