rendered paste body<?
$i = 1;
while ($i <= 28)
{
$url = "http://snesorama.us/board/forumdisplay.php?f=34&order=desc&page=" . "$i";
//echo $url . "<br>";
$ch = curl_init($url); //load the urls
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); //Only send the data, don't wait.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$raw = curl_exec($ch); //Execute
curl_close($ch);
$pattern = "/t\=[0-9]+/m";
//$pattern = "/showthread/m";
preg_match_all($pattern, $raw, $matches);
foreach ($matches[0] as $match)
{
if ($lastmatch != $match)
{
echo "http://snesorama.us/board/showthread.php?" . $match . "</br>";
$lastmatch = $match;
}
}
//var_dump($matches);
$i++;
}
?>