title: Is it possible to check that mp3 file is exactly mp3 file with php?
body: <p>When checking mime type, php sometimes fails to detect mimetype, and giving back "application/octet-stream".</p>
  
  <p>I've tried to check if getid3 php library could do this - but i can't understand to which data/option i can bind, audio data format parameter is also sometimes missing. Is it possible to perform correct check that file is mp3?</p>
  
  <p>Answer given by @gordon is not appropriate(my question was marked as duplicate): <a href="https://stackoverflow.com/questions/2006632/php-how-can-i-check-if-a-file-is-mp3-or-image-file">PHP how can i check if a file is mp3 or image file?</a>
  Because, as i wrote, wrong mime type is detected. @gordon, please read questions carefully before marking them duplicate.</p>