All pastes #607735 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-07 21:34 UTC
rendered paste body
foreach($rsssite as $rss => $type) {
	$rss1 = explode('/', $rss);
	$rss2 = $rss1[count($rss1)-1];
	$data = str_replace(array('<image>', '</image>'), array('<thumbnail>', '</thumbnail>'), file_get_contents($rss));
	$handle = fopen("thumbs/$rss2", "w");
	fwrite($handle, $data);
	fclose($handle);
	$url = 'http://localhost/feeds/thumbs/'.$rss2;
	$xml = fetch_rss( $url );
	foreach ($xml->items as $item) {