I want to be able to do this in a html file for a banner program...
<a href="redirect.php"><img src="printimg.php"></a>
The browser will call printimg.php and the script will respond with raw binary data--printing out an image... and then if it's clicked, well that's not related...
Note this has nothing to do with something like this:
<?php
print("<img src=\"someFunctionThatReturnsTheFilenameOfAnImage()\">");
?>
So how do I output an image? Doesn't that involve setting the appropriate headers, etc?