Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $channelid = $_GET["url"];
- //$url = "www.canlitvlive.co/tvizle.php?t=1&tv=atv-izle";
- function get_data($url) {
- $ch = curl_init();
- // Set the url
- curl_setopt($ch, CURLOPT_URL, $url);
- // Set the result output to be a string.
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $output = curl_exec($ch);
- curl_close($ch);
- return $output;
- }
- $string = get_data($channelid);
- preg_match_all('/file:/',$string,$matches, PREG_PATTERN_ORDER);
- $var1=$matches[1][0];
- echo $var1;
- //header("Location: $var1");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement