hi!

i want to view an rss file using php..

i found this site:
http://www.softarea51.com/tutorials/parse_rss_with_php.html

here's the code:

<?php
	$doc = new DOMDocument();
	$doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml');
	$arrFeeds = array();
	foreach ($doc->getElementsByTagName('item') as $node) {
		$itemRSS = array ( 
			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
			'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
			);
		array_push($arrFeeds, $itemRSS);
	}
?>

i want to view only the TITLEs of each item in the RSS Feed.

like this:

TITLE1
TITLE2
TITLE3
TITLE4
...
TITLEn

the problem is..

i dont know how to use that php code.

i need that for my software.. ( vb.net ) .

please help :)

thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.