I'm webmaster of a site which will open next month. I've prepared a lot of banners and want to control who display one of my banner on his site.

Clearly said, the other webmaster inserts <IMG SRC='http://www.delcampe.com/banner.php?member=145'> in his HTML code and my page 'banner.php' returns an image found randomly in my MySQL database and register which member has displayed this banner (in order to make stats).

I'm not sure about this, but you'll have to set the encoding header to image/gif or something like that, dunno exactly what header is, and then read each line from your image and start printing all over the file. It cannot contain HTML tags...

Basically, I think that's it... Anyone that knows exactly what I am talking about could explain better.

But you can try another thing too...

Dunno if works, but your php can redirect to a file so it probably displays correct... dunno, I still think the other solution is better (I mean, works)