I'm trying to insert regular mime plain/text (e.g below I'm trying to echo 'wow'. What's happening is I get wow echoed along with binary in my window. I take 'wow' out and I get the image set in mime format. What I'm trying to accomplish is echoing out text above my image. Do I have to set two separate mime types? How can I include text in this popup window? The $image variable is displaying the actual image.
Thanks
$Ext = getFileExtension($_GET[File]);
if(!empty($_GET[File]) && !empty($_GET[w]) && !empty($_GET[h]))
{
include"config.php";
if(!empty($_GET[Large]))
{
echo"wow";
$q1 = "update `images` set `Viewed` = Viewed+1 where `Image` = '$_GET[File]'";
mysql_query($q1) or die(mysql_error());
}
header('Content-Type: image/jpeg');
$Image = CopyImageFileGD($_GET[File],$Ext,$_GET[w],$_GET[h]);
}