Guest User

Untitled

a guest
Sep 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2. function getURL($u){
  3. $ops = array(
  4. 'http'=>array(
  5. 'method'=>"GET",
  6. 'header'=>"Accept: text/htmlrn" .
  7. "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0rn"
  8. )
  9. );
  10. $co = stream_context_create($ops);
  11. $r = file_get_contents('http://' . $u, false, $co);
  12. return $r != false ? $r : "";
  13.  
  14. }
  15. function GetStringBetween($string, $start, $finish){
  16. $string = " ".$string;
  17. $position = strpos($string, $start);
  18. if ($position == 0) return "";
  19. $position += strlen($start);
  20. $length = strpos($string, $finish, $position) - $position;
  21. return substr($string, $position, $length);
  22. }
  23. $grab = file_get_contents('http://mygoodstream.pw/tennis/1.m3u8');
  24. ?>
  25. <?=$grab?>
  26.  
  27. http://mygoodstream.pw/tennis/live1.php
Add Comment
Please, Sign In to add comment