Re: Reliable way to identify Ogg types?
| From: | Michael A. Peters | Date: | Wed, 27 Jan 2010 06:17:29 +0000 |
| Subject: | Re: Reliable way to identify Ogg types? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301529@lists.php.net to get a copy of this message | ||
Eric Lee wrote:
Hi Micheal, One of way for this should be by checking the header of the file with its OggS magic number. You may take a look at this page to see if it could help ! http://en.wikipedia.org/wiki/Ogg But I'am confused that the mime type should be enough what type of data its coming ! Are there are any more things you need to concern ?The problem is that fileinfo just reports application/ogg for both Ogg Vorbis and Ogg Theora files, and I never want to trust extension or user to properly identify file. Maybe I need to update some library that fileinfo function is built against or uses.