Get mime type of external file using cURL and php

Posted by Axel on Stack Overflow See other posts from Stack Overflow or by Axel
Published on 2010-04-09T20:33:13Z Indexed on 2010/04/09 20:43 UTC
Read the original article Hit count: 353

Filed under:
|
|

I've used mime_content_type() and File info but i never successed. i want to use now cURL and get the headers of the file which is hosted on another domain then determine if the type is MP3 or not. ( i think the mime type of MP3 is audio/mpeg)

Briefly, i know that but i don't know how to apply it :)

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about curl