Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://vk.com/doc156997408_544844662?hash=164f75073c3a2c5011&dl=GE2TMOJZG42DAOA:1586093437:0d630796c3a5667767&api=1&no_preview=1");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HEADER, true);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); // Videos are needed to transfered in binary
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // That's the clue!
- $result = curl_exec($ch); // $result will have your video.
- var_dump($result);
- curl_close($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement