title: How do i fix this PHP CODE
body: <p>It says theres an error </p>
  
  <p>I'm trying to make it grab between <em>playlist.m3u8?wmsAuthSign=</em> and <em>"</em> on what ever page I put after <em>mylink.com/file.php?f=whatever</em> then the <em>whatever</em> would then be placed after the <em>www.linkhere.com/</em> in the GETURL code so it grabs between <em>playlist.m3u8?wmsAuthSign=</em> and <em>"</em> on the <em>linkhere.com/whatever</em> page ( if that makes sense</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;?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/&lt;?=!isset($_GET["f"]) ? "filehere.php" : htmlspecialchars($_GET["f"])?&gt;"),"playlist.m3u8?wmsAuthSign=", '"');
  ?&gt;
  </code></pre>