Stream Image?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a static image which I want to display using PHP (I do not want
to change it, just use it to trigger a database entry). I would love to
be able to directly stream the image from within the PHP file after I'm
finished with calculations.
Currently I'm using the following but I get the feeling this takes an
extra-stept for the browser:

  header('Location: /button.gif');

Could I just use something like...:

  echo file("../button.gif")?

I was looking in Google Groups but did not find anything relevant. By
the way, I do not have the luxury to use any special add-ons, but if
nothing else works I am able to switch from PHP4 to PHP5.

Google Blogoscoped

Site Timeline