Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $video = $_GET['video'];
- if(preg_match('/www.youtube.com/',$video))
- {
- $link = "https://www.youtubeinmp3.com/fetch/?format=text&video=$video";
- }
- else
- {
- $link = "https://www.youtubeinmp3.com/fetch/?format=text&video=https://www.youtube.com/watch?v=$video";
- }
- $page = file_get_contents($link);
- $split = explode("<br/>Link: ", $page);
- echo $split[1];
- ?>
Add Comment
Please, Sign In to add comment