Download YouTube video in server

后端 未结 1 1398
忘了有多久
忘了有多久 2021-02-06 16:32

I have created a YouTube search engine + download + MP3 convert script. I have used Jeckman\'s YouTube Downloader for creating this script. Everything is OK, except, I want to d

1条回答
  •  遇见更好的自我
    2021-02-06 16:55

    I've found out a solution to store the YouTube file to server. I have removed the header stuff and put $download_video_file = file_put_contents($file_path, fopen($url, 'r')); in place of readfile($url); and it worked like a magic! ^_^

    Here's the complete code:

    
    

    0 讨论(0)
提交回复
热议问题