Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getURL($u){
- $ops = array(
- 'http'=>array(
- 'method'=>"GET",
- 'header'=>"Accept: text/htmlrn" .
- "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0rn"
- )
- );
- $co = stream_context_create($ops);
- $r = file_get_contents('http://' . $u, false, $co);
- return $r != false ? $r : "";
- }
- function GetStringBetween($string, $start, $finish){
- $string = " ".$string;
- $position = strpos($string, $start);
- if ($position == 0) return "";
- $position += strlen($start);
- $length = strpos($string, $finish, $position) - $position;
- return substr($string, $position, $length);
- }
- $grab = file_get_contents('http://mygoodstream.pw/tennis/1.m3u8');
- ?>
- <?=$grab?>
- http://mygoodstream.pw/tennis/live1.php
Add Comment
Please, Sign In to add comment