
March 30th, 2005, 02:32 PM
|
 |
Permanently Banned
|
|
|
|
|
PHP / RSS Questions
Hi - I just had a quick question.. I'm not a PHP programmer or anything, but I was wondering 2 thing.
1. Can I set up my RSS feed to have the links open in a new window?
2. How can I change my RSS feed to use my style sheet?
(i have just set up an RSS feed on www.sddefenselawyers.com and was hoping i could fix this problem)
the php code that i added in works with MAGPIERSS and looks like this
Quote: <?php
require_once 'rss_fetch.inc';
$url = 'http://www.law.com/newswire_rss.xml' ;
$rss = fetch_rss($url);
echo "Site: ", $rss->channel['title'], "<br>\n";
if ( $rss and !$rss->ERROR) {
foreach ($rss->items as $item ) {
echo "<p><a href=" . $item[link] . ">" . $item[title] . "</a><br>\n";
echo $item[ description ] . "</p>" ;
}
} else {
echo "RSS Error: " . $rss->ERROR . "<BR><BR>" ;
}
?> |
Any help would be appreciated.
Thanks
__________________
It's been fun everyone... Time to leave for good. See this for more details.
|