AbydosGater Posted July 2, 2007 Share Posted July 2, 2007 Hey Guys, I have heard of it being done, But i cant quite figure out how its done. I would like to make a .gif that would maybe have a mail() or something in it. Would anyone know how to do this please? Andy Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/ Share on other sites More sharing options...
ToonMariner Posted July 2, 2007 Share Posted July 2, 2007 Hey Guys, I have heard of it being done, Where? I would LOVE to see it Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288078 Share on other sites More sharing options...
effigy Posted July 2, 2007 Share Posted July 2, 2007 You can make a php file that would call mail, then open a .gif, then pass it through with gif headers. I think that's the only possibility. Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288083 Share on other sites More sharing options...
AbydosGater Posted July 2, 2007 Author Share Posted July 2, 2007 Ok, Thanks how exactly could i go about doing that? Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288086 Share on other sites More sharing options...
GingerRobot Posted July 2, 2007 Share Posted July 2, 2007 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. Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288088 Share on other sites More sharing options...
Salis Posted July 2, 2007 Share Posted July 2, 2007 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 Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288096 Share on other sites More sharing options...
AbydosGater Posted July 2, 2007 Author Share Posted July 2, 2007 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? Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288101 Share on other sites More sharing options...
Salis Posted July 2, 2007 Share Posted July 2, 2007 I'd use <?php header("Content-type: image/gif"); ?> Link to comment https://forums.phpfreaks.com/topic/58098-solved-php-code-in-a-gif/#findComment-288126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.