I'm writing a program that will take a series of URLs and, one at a time, examine the source code of the target pages.
So far so good. But how can I get the URL or the target page??
Here is the code I'm using :
<?
$fp = fopen("http://www.example.com/redirect123.php", "r");
$tmp_site = "";
while (!feof($fp))
{
$tmp_site .= fgets($fp, 128);
};
fclose($fp);
?>