> "Randall Barber" <[EMAIL PROTECTED]> wrote
>I have seen in several places the following line:
> <img src='myScript.php' etc..etc..>
> Will this tag work in both IE and Netscape?


> What does myScript.php do?  Does it find an image and pass the binary data

Sure, that's one use; another is to dynamically generate an image.

> Something like this--
> <?php
> $fp = fopen(odbc_result($qryResult, "imgPath"), "rb");
> fpassthru($fp);
> fclose($fp);
> ?>

Yes; but you should send a header first, telling the browser what kind of
image it's getting (ie 'Content-type: image/png' or whatever's appropriate).

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to