Jump to content

Mysql Data Base Creation


mishawakaguy50

Recommended Posts

I have Mysql version 5.0.91 installed on my web server along with php version 5.2.12. I have embeed a music player on my site called flash mp3 player which requires PHP. It works fine with no problems. What I want to do if it is possible, I had to create a folder called mp3 on my server which I have done, and I uploaded  all of my mp3 files to my server into this directory. Since MYSQL is already installed on my server, is it possible to create a database of all my mps files? I want to create this data base so I can create a text file of all my songs and put the list on my website. I'm new to MYSQL and would appreciate any help or suggestions!

Link to comment
https://forums.phpfreaks.com/topic/256752-mysql-data-base-creation/
Share on other sites

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.php

http://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.

Thank you for your responce gizmola, it helped and I have properly set up the data base and it works fine. As for the responce by berre, I NEVER asked anyone to write any kind of a script for me! I was asking a simple question. So once again thanks gizmola I appreciate your help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.