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

Started on the old forum in November 2020 · view the original in the archive · old links redirect here

5 replies · 72 views · started 6 years ago · 1 min read

ayesham Developer · 69 posts #1

this is my code to upload mp3 files and necessary mp3 related inputs 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

ayesham Developer · 69 posts #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.

ayesham Developer · 69 posts #3

Hello is there anyone who can help me on this

ayesham Developer · 69 posts #4

Hello guys is there anyone to help me??

ayesham Developer · 69 posts #5

im still waiting for help on this??

ayesham Developer · 69 posts #6

It seems no one interest to help me. 🙁

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close