Advertisement
qsadfasdgfgads

Untitled

Apr 5th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_URL, "https://vk.com/doc156997408_544844662?hash=164f75073c3a2c5011&dl=GE2TMOJZG42DAOA:1586093437:0d630796c3a5667767&api=1&no_preview=1");
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  5. curl_setopt($ch, CURLOPT_HEADER, true);
  6. curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); // Videos are needed to transfered in binary
  7. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // That's the clue!
  8. $result = curl_exec($ch); // $result will have your video.
  9. var_dump($result);
  10. curl_close($ch);
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement