url upload with mysql db update
Collapse
X
-
To grab a file via url:
PHP Code:$url = 'http://example.con/song.mp3';
$saveAs = '/someFolderName/'.basename($url);
$gotMp3 = file_put_contents($saveAs, file_get_contents($url));
if($gotMp3)
{
// get size, artist etc using getid3 from $saveAs here
}
Leave a comment:
-
url upload with mysql db update
Need To know how to Url file(mp3) upload with mysql update filepath, size, file title to a DB?? anyone can help me on this is much appreciated.
i do have db as
id (auto increment)
'filepath'
'song_title'
'size'
'artist'
'coverphoto'
'lyrics'
'music'
'date'
getid3 file path =.. system/getid3/getid3.php
Tags: None
Leave a comment: