url upload with mysql db update

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

    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




    #2
    To grab a file via url:
    PHP Code:
    $url 'http://example.con/song.mp3';
    $saveAs '/someFolderName/'.basename($url);
    $gotMp3 file_put_contents($saveAsfile_get_contents($url));
    if(
    $gotMp3)
    {
    // get size, artist etc using getid3 from $saveAs here

    Note: above script has no security ^

    Comment


      #3
      hmmm lets see.... tnx bro

      Comment

      Working...
      X