PHP could absolutely accomplish this goal. MP3's support a tag header that is read by players, and this same tagging system (known as id3) can be read in a number of ways, within a php script. There is an extension and several libraries out there that can ready the id3.
Here's a link to 2:
http://www.php.net/manual/en/function.id3-get-tag.phphttp://getid3.sourceforge.net/In short what your script would need to do is:
-traverse all the files in the directory
-call one of the id3 functions
-use this to create a row in your song table in the mysql database
So in short, you are able to do this with php, but as stated, this is a help site, and you need to gain a modicum of skill, and actually create some code, before people will help you.