Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.html:
- <!DOCTYPE html>
- <html lang="pt-BR">
- <head>
- <meta charset="utf-8"/>
- <title></title>
- </head>
- <body>
- <form method="post" action="getlink.php">
- <input type="text" value="" name="url" id="url" /><p/>
- <input type="submit" value="Baixar"><br/><br/>
- </form>
- </body>
- </html>
- getlink.php:
- <?php
- if (!empty($_POST['url'])) {
- $html = file_get_contents($_POST["url"]);
- $url_360p_split1 = explode("html5player.setVideoUrlHigh('", $html);
- $url_360p_split2 = explode("'", $url_360p_split1[1]);
- echo "$url_360p_split2[0]";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement