Re: [PHP4BETA] Output buffering
[email protected] (Rasmus Lerdorf)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
> With output buffering on (in php.ini) isn't it possible to show an image in
> the middle of the page by sending a header("Content-type: image/gif"); and
> then the contents of the image?
>
> If so..does anyone have an example?
<html>blah blah
<img src="script.php">
blah blah </html>
Then write yourself a script.php file which generates an image/gif data
stream. This has nothing to do with output buffering and you definitely
cannot mix content in a single request like that.
-Rasmus