get mp3 metadata cover while uploading a mp3 save on mysql??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    get mp3 metadata cover while uploading a mp3 save on mysql??

    this is my code to upload mp3 files and necessary mp3 related inputs code,

    PHP Code:

    include 'connect.php';
    if(isset(
    $_POST['sub'])){
    $t=$_POST['title'];
    $a=$_POST['artist'];
    $l=$_POST['lyrics'];
    $m=$_POST['music'];
    $c=$_POST['category'];


    //code for mp3 uploading
    if($_FILES['f1']['name']){
    move_uploaded_file($_FILES['f1']['tmp_name'], "files/".$_FILES['f1']['name']);
    $mp3path="../".$_FILES['f1']['name'];
    $filepath="files/".$_FILES['f1']['name'];
    $size $_FILES['f1']['size'] /1024;

    }

    $i="insert into files(title,artist,cover,lyrics,music,mp3path,size,c ategory,filepath)values('$t','$a','$cv','$l ','$m','$mp3path','$size','$c','$filepath' )";
    if(
    mysqli_query($con$i)){
    echo 
    " Your Mp3 is Uploaded successfully..! <br/>";
    }


    how can i get this mp3 files cover photo from getid3 and save in relevant mysql db 'cover'

    Please help me

    #2
    need help on this code also im using my own developed script and cover jpg along with mp3 file im uploading using php and save on mysql db. This is very annoying so could anyone help me to develop the same code to get the manual inputs from mp3 metadata tags specialy name,artist,album,cover_photo,size auto and save in exsisting db. I had tryied to use getid3tag to view mp3 related data directly from the root mp3 folder according to $id it woked but web loading time is high so had to remain in the old manual php input fields catch and view the db data. If anyone can help me on this is verymuch appreciated and would like to have more security when uploading a mp3 file from the same script.

    Comment


      #3
      Hello is there anyone who can help me on this

      Comment


        #4
        Hello guys is there anyone to help me??

        Comment


          #5
          im still waiting for help on this??

          Comment


            #6
            It seems no one interest to help me.

            Comment

            Working...
            X