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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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"); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.