Troubles with dynamic images



I have a dynamically created image (using GDK, I believe). When I visit the URL that creates it, I can see it fine, but when I link it in a tag, it doesn’t show up.

So for example, this works to see the image:

And this one doesn’t:

This worked fine with my last host. Can anyone tell me why it’s not working here?



are you sending a content-type header from image.php? if it’s a png image, you’d need something like this:
header(‘Content-Type: image/png’);

i have a couple php scripts that generate png images using the gd library. they send the image/png content-type, but are also named with a png extension, which may make a difference to some browsers.

track7 - my dream-hosted site