You are here: Re: Audio type « PHP Programming Language « IT news, forums, messages
Re: Audio type

Posted by Shelly on 10/13/13 11:22

"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:cicde1plsna208fj7jiii1058d6a50u2ut@4ax.com...
> On Tue, 26 Jul 2005 20:44:13 GMT, "Shelly"
> <sheldonlg.news@asap-consult.com>
> wrote:
>
>>> There's the "mime magic" function:
>>>
>>> http://uk2.php.net/mime_content_type
>>>
>>> ... which looks for magic numbers in the file to make a decent guess as
>>> to
>>> what format a file is. Not foolproof, but generally reasonable.
>>
>>Thanks, I'll try it. I looked at the URL you posted, but couldn't figure
>>out what to look for to ascertain if it is an audio file. I assume that
>>for
>>an audio file it will output something like "audio/something" and I could
>>check for the a match on the first five characters.
>
> Yes, that sounds right.

A wee bit of a problem. I did it and I get:

Fatal error: Call to undefined function: mime_content_type() in
/home/virtual/site23/fst/var/www/html/ssManageMusic.php on line 118

Now in www.php.net it says that the function is available for
(PHP 4 >= 4.3.0, PHP 5)

I downloaded and checked the php.ini on my server. I saw one comment that
mentioned something for PHP4.3 or greater, so I assume that my server is
running at least PHP 4.3. Any ideas?

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация