Author Topic: Mysql Data Base Creation  (Read 41 times)

0 Members and 2 Guests are viewing this topic.

Offline mishawakaguy50Topic starter

  • Irregular
  • Posts: 1
  • Gender: Male
    • View Profile
    • Everything Oldies
Mysql Data Base Creation
« on: Yesterday at 12:05:29 PM »
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!

Offline fenway

  • MySQL Si-Fu / PHP Resident Alien
  • Global Moderator
  • 'Mind Boggling!'
  • *
  • Posts: 15,444
  • Gender: Male
    • View Profile
Re: Mysql Data Base Creation
« Reply #1 on: Yesterday at 03:09:00 PM »
Database hwo?
:anim_rules: Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

Offline Berre

  • Irregular
  • Posts: 8
    • View Profile
Re: Mysql Data Base Creation
« Reply #2 on: Yesterday at 11:50:21 PM »
You should probably learn the basics of MySQL before you ask questions. No one are here to make scripts for other people, but rather help with getting them to work properly.

http://www.google.com/search?q=mysql+AND+php+AND+(tutorial+OR+introduction)

Online gizmola

  • Administrator
  • Freak!
  • *
  • Posts: 5,063
  • Gender: Male
  • Let's go Flyers
    • View Profile
    • GizmoLA.com
Re: Mysql Data Base Creation
« Reply #3 on: Today at 03:37:27 AM »
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.