Chris Boget wrote:

How do you intend on using that information?  Typically the mime types
are set up in one of apache's .conf files.  The same file you set up the
PHP extension, if I remember correctly.

The actual use involves handling file uploads. The uploaded files must be moved to a permanent location on the server, after being verified to be valid submissions. The files are saved using a naming scheme defined by the server scripts, i.e., they will not keep the same name as the original, uploaded files. So, what I wanted to do was to use the /MIME-type/ information that comes in the /$_FILES/ structure in order to find the appropriate file extension for a given file on the platform the application is running.


In the end, I decided to extract that extension from the original filename, which is also available in the /$_FILES/ structure.

Thank you for your help,

--
Ney André de Mello Zunino


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to