The browser needs to know what the type of the data is.
That's why the examples allways send a header like "content-type: image/png"
That tells the browser to handle the coming data as an image.
If you want to include a php-generated image in a page, you'll have to
reference it like this:
img src="php_script_that_generates_an_image.php"
The only thing I'm not sure of how to how to is pass variables to the script that
generates the image.
But I'm sure somebody out there knows how. Guys?