Page 1 of 1

running php script in a .gif file ?

Posted: Thu Nov 06, 2003 7:14 am
by JAska
I want to use a file with .gif ending to run a php script. Is it possible? For example using a URL http://www.mysite.com/images/foo.gif that actually is a php script that does some calculations and after that returns a gif image.

It would be usable as an avatar picture in a forum like this. Many forums don't allow php-files in avatars, so using a gif file instead would make dynamic avatars possible!

Any ideas, anyone..?

Posted: Thu Nov 06, 2003 8:32 am
by twigletmac
There are dynamic avatars here, check out:
http://www.devnetwork.net/forums/viewtopic.php?t=4

Mac

Posted: Thu Nov 06, 2003 9:45 am
by JAska
Thanks a lot!

The solution (AddType application/x-httpd-php .jpg) was just too easy to be thought of... :?