[dev] Re: [cvs] commit: whups css.php cvs.php diff.php whups/config html.php.dist .cvsignore conf.php.dist whups/graphics deleted.gif whups/templates diff_header.inc diff_request.inc diff_rev.inc dir_back.inc dir_directory.inc dir_file.inc dir_header.inc ...
Anil Madhavapeddy
anil@recoil.org
Thu, 21 Dec 2000 18:29:23 +0000
Quoting Jon Parise <jon@csh.rit.edu>:
> Apache MIME logic is pretty robust (mod_mime_magic, for example).
> Performing the same kind of comparisons in PHP would be slow, however.
> I think it would be cool to have a PHP extension that handle MIME
> detection and negotiation, perhaps that tied into Apache's code. That
> would make things much faster and efficient.
>
> I'd look into this myself, but I'm not sure I'll have the time to do
> it right, so I figured I toss it out in the hope that someone else
> might have the time and motivation to see it through.
>
Yeah, I looked at doing an internal sub-request to call on
mod_mime_magic some months back, but couldn't get it right the
first time and had to give up due to lack of time. Still,
given how PHP has moved beyond Apache to other web-servers, it
would be nice not to depend on Apache exclusively for this.
--
Anil Madhavapeddy, <anil@recoil.org>