It says theres an error
I'm trying to make it grab between playlist.m3u8?wmsAuthSign= and " on what ever page I put after mylink.com/file.php?f=whatever then the whatever would then be placed after the www.linkhere.com/ in the GETURL code so it grabs between playlist.m3u8?wmsAuthSign= and " on the linkhere.com/whatever page ( if that makes sense
Here is the code:
<?php
function getURL($u){
$u = file_get_contents("http://{$u}");
return $u != false ? $u : "";
}
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);
}
$stream = GetStringBetween(getURL("www.linkhere.com/<?=!isset($_GET["f"]) ? "filehere.php" : htmlspecialchars($_GET["f"])?>"),"playlist.m3u8?wmsAuthSign=", '"');
?>