Re: PHP-GTK cool-apps
| From: | Rich Payne | Date: | Thu, 25 Oct 2001 14:13:41 +0000 |
| Subject: | Re: PHP-GTK cool-apps | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-460@lists.php.net to get a copy of this message | ||
On Thu, 25 Oct 2001, Jo Giraerts wrote:
> > It's getting close....I have a few more things I want to get done
> > first. I'm re-writing all the MIME code at the moment (for determining
> > MIME types) as the current code makes some nasty assumptions.
>
> Ah. how do you do the MIME-checking? The only way i found for the moment
> is using /etc/mime.types and checking if the extension of the file is in
> it. Is there any better way?
Well, I can't say I'm particularly proud of my solution a this point, but
I'm distributing my own copy of a mime.types file (from gnome-vfs's
mime.types), and them using that to match type to extension etc....
I'm hoping I can think of a better way in the future, but this will have
to do for now.
--rdp
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org