Jump to content

[SOLVED] Php Code in a .gif?


AbydosGater

Recommended Posts

Dont think its really what you're after, but you could set up apache to parse files with .gif extensions as php files. Wouldn't really be a gif file, but yeah. I was messing around with it because i wanted a dynamic picture on my myspace - and they wont allow images with .php extensions.

The work around I know of is a  Folder named something like image.gif and in that folder you have an index.php file that has a image/gif header.

 

I used this trick to create an avatar for my old site that displayed the ip, location and other stuff to the person looking at my avatar.. Kind'a cool actually

No thats not what i want, I am sending emails and i want to send via in HTML, and i want to attach a small .gif image to the end of the email that hopefully will run the mail() or mysql_query() function to cause some method of me knowing when they read the email...

 

Andy

 

EDIT: Salis: Hmm thanks that sounds like a good idea.. what header did you put at the top of the php file?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.