NYCPHP Meetup

NYPHP.org

[nycphp-talk] AddType application/x-httpd-php .gif .jpg .etc

Adam Fields fields at hedge.net
Tue Mar 29 16:13:39 EST 2005


On Tue, Mar 29, 2005 at 04:08:38PM -0500, Andrew Yochum wrote:
> I thought I'd ping the list about this before I dive into this idea.
> Has anyone ever tried to set the PHP module as a handler for images?
> 
> I have something like this in mind:
> 	AddType application/x-httpd-php .gif
> 	AddType application/x-httpd-php .jpg
> 	AddType application/x-httpd-php .png
> 
> Did you have actual binaries behind the requests or scripts?  Google
> turned up some of the latter, though nothing terribly interesting.  I'm
> interested in the former - binaries.  Were you successful?  Any hiccups
> or pointers?
> 
> Yeah, I'm probably crazy.

I've never done this with php, but we used to do it all the time in
Vignette. You can use this technique to do some cookie get/set for
custom images.

I see no reason why it wouldn't work with php, although I don't
understand your question about binaries.

Also, you can put the AddType in the .htaccess, obviously.

-- 
				- Adam

** I can fix your database problems: http://www.everylastounce.com/mysql.html **

Blog............... [ http://www.aquick.org/blog ]
Links.............. [ http://del.icio.us/fields ]
Photos............. [ http://www.aquick.org/photoblog ]
Experience......... [ http://www.adamfields.com/resume.html ]
Product Reviews: .. [ http://www.buyadam.com/blog ]




More information about the talk mailing list