Troubles with dynamic images


#1

Hello,

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:
http://www.mysite.com/image.php?value=new

And this one doesn’t:

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

Thanks!
Chris


#2

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