Answer the question
In order to leave comments, you need to log in
How to download video from youtube in PHP?
how to download youtube video in php you need a class (or piece of code) that describes how to do it. Thank you.
Answer the question
In order to leave comments, you need to log in
1 First, we imitate the browser through curl, and if earlier, something like now for sure.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
youtube.com/get_video_info?video_id=e0UWT0dFSQE
via print_r
2 Previously, after the first visit, we received a link in the header via print_r
There were links to videos of different formats, now we need two visits ...
Now there is none ...
In general, maybe someone else is doing this, it is very dreary to fight with YouTube.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question