Home » Php » Cant get php to return HTML page source

Cant get php to return HTML page source

Posted by: admin February 25, 2020 Leave a comment

Questions:

Any advice on getting php to return (HTML) page source for this url?

https://ustvgo.tv/player.php?stream=USANetwork

is the code I’m trying to grab

  <?php  
    $data = file_get_contents('https://ustvgo.tv/player.php?stream=USANetwork');
    echo htmlspecialchars($data);
    ?>

is what I have tried

the goal is to return everything in the page source so the player m3u8 is always a updated wmsauth key.

Any Advice would be super helpful!

How to&Answers: