A Conversation for Subscribe to RSS Feeds from h2g2

Readers

Post 1

Two slightly distorted Goshos

"In order to view RSS feeds you will need to use a feed reader (or news reader)"

Or you could just download the latest version of Opera - it has one built-in. Won't be too long before other browsers follow suit I suspect.


Readers

Post 2

Scandrea

Safari for Mac has one, too! smiley - biggrin


Readers

Post 3

Zak T Duck

Firefox does too, although it calls them "live bookmarks"


Readers

Post 4

RFJS__ - trying to write an unreadable book, finding proofreading tricky

That isn't a reader as such: it's an automatically updating list of pages. A reader in Firefox would be an extension like Sage, for example, that gets the content of each page in the list and displays it together rather than requiring you to visit the individual pages.


Readers

Post 5

laconian

Safari has one? I can't find it, but perhaps there's a new version for OS X Tiger. I'm on Panther.


Readers

Post 6

Researcher 198131

Which version of Safari? How does it work?

smiley - elf


Readers

Post 7

TRiG (Ireland) Not all those who wander are lost

Or, on a localhost server, create reader.php Following Code: Feed Reader

Enter RSS feed information here

URI

Title

".date("Y-m-d H:i:s")."

"; ?> Then create feeds.php Following Code: \n".$title."\n\n
"; $insideitem = false; $tag = ""; $title = ""; $description = ""; $link = ""; function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { $tag = $name; } elseif ($name == "ITEM") { $insideitem = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $description, $link; if ($name == "ITEM") { printf("
%s
", trim($link),htmlspecialchars(trim($title))); printf("
%s
",htmlspecialchars(trim($description))); $title = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": $link .= $data; break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen($feed,"r") or die("Error reading RSS data."); while ($data = fread($fp, 4096)) xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); fclose($fp); xml_parser_free($xml_parser); ?>

Sitepoint.com

I actually understand some of the above. It's slightly edited (by me) from the one in Sitepoint. I understand the edits I made, but not much of the rest of it. TRiG.


Readers

Post 8

Researcher 198131

smiley - erm

Okay, I can copy and paste the code. How do I create reader.php?

smiley - elf


Readers

Post 9

TRiG (Ireland) Not all those who wander are lost

You need a webserver. A geeky friend of mine downloaded Apache and PHP Switch to my computer. It resides in C:\Program Files\xampp and runs the localhost server. http://localhost/ <-- if you see nothing here, you don't have a localhost server.

Alternatively, get someone who has access to an online webserver to put the files up on his website. Then anyone can use them to read almost any RSS feed.

(I almost sound as though I know what I'm talking about, don't I?)

TRiG.smiley - geek


Readers

Post 10

Researcher 198131

A mac doesn't have a program files folder. And we don't call the hard drive C://. However when I clicked on your link I got this message: "If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page."
Rather cool! Thank you.

smiley - elf


Readers

Post 11

TRiG (Ireland) Not all those who wander are lost

Well, if you find the directory where the localhost server is, you can create the two files above (use a plain text editor: the Mac equiv. of Windows Notepad), and save them with the extension .php. Then find them at, for example (this is if you put them in a subdirectory called rss_readers).

http://localhost/rss_readers/reader.php

This should work.

TRiG.smiley - geek


Key: Complain about this post