All pastes #476054 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-05-07 21:18 UTC
rendered paste body
<?// web sites loopfor ($i = 0; $i < count($smap); $i++) {    Echo "Working on Web Site ID #".$smap[$i]['id']."<br>";		$xmlfile1 = "testsitemap-" . $smap[$i]['id'] . "-page1.php";	$xmlfile2 = "testsitemap-" . $smap[$i]['id'] . "-page2.php";	$xmlfile3 = "testsitemap-" . $smap[$i]['id'] . "-page3.php";	$fh1 = fopen($xmlfile1, 'w') or die("can't open");	$fh2 = fopen($xmlfile2, 'w') or die("can't open");	$fh2 = fopen($xmlfile3, 'w') or die("can't open");	for ($f = 0; $f < count($smap[$i]['general']); $f++) {			// general links		Echo "Text:".$smap[$i]['general'][$f][0]." Link:".$smap[$i]['general'][$f][1]."<br>";		$stringData = "<a href=" . $smap[$i]['general'][$f][1] . ">" . $smap[$i]['general'][$f][0] ."</a><br>";		$count++;		if ($count == 100) { 			echo "<br>Hit 100<br>"; 			fwrite($fh1, $stringData);					}	}fclose($fh1);//	echo count($smap[$i]['general']);	for ($g = 0; $g < count($smap[$i]['locations']); $g++) {		// location		Echo "Location:".$smap[$i]['locations'][$g]."<br>";			for ($s = 0; $s < count($smap[$i]['location_links'][$smap[$i]['locations'][$g]]); $s++) {					// location links		Echo "Text:".$smap[$i]['location_links'][$smap[$i]['locations'][$g]][$s][0]." Link:".$smap[$i]['location_links'][$smap[$i]['locations'][$g]][$s][1]."<br>";				$stringData = "<a href=" . $smap[$i]['location_links'][$smap[$i]['locations'][$g]][$s][1] . ">" . $smap[$i]['location_links'][$smap[$i]['locations'][$g]][$s][0] ."</a><br>";//		fwrite($fh, $stringData);		$count++;//		while ($count <= 150) {//		    echo $count; //		}					if ($count == 300) { echo "<br>Hit 300<br>"; }		}	}}	echo $count;?>