Hi
I want a simple xml reader class, i dont want anything thats downloaded... should be written from scratch with alot of code comments.
It needs to be simple this is not a huge class project, can not use simplexml(php).
It should grab, title/link/description and post date.
$feed = new RSSReader("url");
$feed->timeout = 10; // seconds
$feed->init();
if ($feed->data)
{
$items = $feed->get_items()
if(count($items) > 0)
{
forreach($items as $item)
{
echo $item->get_title()
echo $item->get_description
echo $item->get_pub_date
}
}
}
else
{
echo no data
}
That about what it needs to be able to do. If it cant crawl a url it should write to a file which url it could not crawl and maybe even why missing title/description nods?
Best Regards
John