running php script in a .gif file ?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
JAska
Forum Newbie
Posts: 2
Joined: Thu Nov 06, 2003 7:14 am
Location: Finland
Contact:

running php script in a .gif file ?

Post 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..?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

There are dynamic avatars here, check out:
http://www.devnetwork.net/forums/viewtopic.php?t=4

Mac
JAska
Forum Newbie
Posts: 2
Joined: Thu Nov 06, 2003 7:14 am
Location: Finland
Contact:

Post by JAska »

Thanks a lot!

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