Re: Reliable way to identify Ogg types?
| From: | Eric Lee | Date: | Wed, 27 Jan 2010 03:43:15 +0000 |
| Subject: | Re: Reliable way to identify Ogg types? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301525@lists.php.net to get a copy of this message | ||
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 ?
Thanks,
Regards,
Eric,
On Wed, Jan 27, 2010 at 11:23 AM, Michael A. Peters <mpeters@mac.com> wrote:
> When I use fileinfo on an uploaded Ogg file, the mime it returns is
> Application/Ogg which is almost useless.
>
> Is there a reliable php way, preferably without needing to execute shell
> commands, to positively identify a file as Ogg Theora or Ogg Vorbis?
>
> Thanks for suggestions.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>