PHP RSS - Just giving back a little
<?php
= "";
= "http://foo.rss";
= simplexml_load_file();
for( = 0; < 5; ++){
= ->item[]->title;
= ->item[]->link;
= ->item[]->description;
// used to stop the [ from breaking my feed in forums
if (strpos(, '[') !== false) {
= strtok(, '[');
}
= ->item[]->pubDate;
//Used to stop a bunch of blank links generating
if (strlen()>5) {
.= "<a href='' target='blank'><h3></h3></a>";
.= "";
.= "<br />";
}
}
echo ;
?> Rick
-
QuaziSazzad -
[ 1 ] Thanks - Reply
SignatureMake your personal or business Website{{ DiscussionBoard.errors[11184879].message }} -