I'm looking to pull file_get_contents info from a dynamically created URL from the source code of a page that I've already used file_get_contents to get. For example:
$link = $_POST['link'];
$html = file_get_contents('http://www.somesite.com/keywords='.$link."");
$output = file_get_contents(
//A URL that is in the output of $html
);
Essentially I want PHP to load an HTML page and then click through a link on that page and then grab the resulting source code, so I can parse some of it into variables to use later. Any idea?