Public feed #723938

splat

public php v1 · immutable
Raw Edit
·published 2007-10-03 04:50 UTC
rendered paste body
<?$filename="G:\\website\\home.asp";$file=fopen($filename,"r") or exit("Unable to open " . $filename . "! ");$contents = fread($file, filesize($filename));preg_match_all( '/<a href="\.\.\/topiclist\/(index[0-9]*\.asp)#.*?"/', $contents, $page, PREG_SET_ORDER );fclose($file);// insert pages in to array// is this really needed, just call it catout?//foreach ($catout as $page) {}for($i = 0 ; $i <= count($page); $i++) {	//echo $item[1] . "<br>\n";	$filename = "G:\\website\\topiclist\\" . $page[$i];	$file = fopen($filename,"r") or exit("Unable to open " . $filename . "! ");	$contents = fread($file, filesize($filename));	preg_match_all('/<li><a href="\.\.\/(.*?)\/"/', $contents, $output, PREG_SET_ORDER );	fclose($file);		for($x = 0 ; $x <= count($output); $x++) {			$page[$i][$x] = $output[$x];		}}?>