Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Michael A. Peters
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

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Eric Lee
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

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 07:23:24PM -0800, Michael A. Peters 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

[PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Michael A. Peters
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 Ma