BBC Home

Explore the BBC

h2g2
8th December 2009
Accessibility help
Text only

.

Conversation Forum


SEARCH h2g2
Edited Entries only
Search h2g2Advanced Search


New visitors: Create your membership
Returning members: Sign in
BBC Homepage
The Guide to Life, The Universe and Everything.

This is the Conversation Forum for Subscribe to RSS Feeds from h2g2
Contact Us


Like this page?
Send it to a friend!

 
Conversation list
<< Nanotechnology in textile finishing-pls help
The meaning of life ... and all that! >>

Readers
Post: 1
Posted Jul 7, 2006 by Is it on the Gosho? Can you point to it?
"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.

Reply 

No Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 2
Posted Jul 7, 2006 by Scandrea
Safari for Mac has one, too! biggrin

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 3
Posted Jul 7, 2006 by Zak T Duck
Firefox does too, although it calls them "live bookmarks"

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 4
Posted Jul 7, 2006 by 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.

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 5
Posted Jul 9, 2006 by Online Nowlaconian
Safari has one? I can't find it, but perhaps there's a new version for OS X Tiger. I'm on Panther.

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 6
Posted Jul 9, 2006 by Táralómë MacHead
Which version of Safari? How does it work?

elf

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 7
Posted Jul 8, 2007 by TRiG (Ireland) Human rights under attack in Uganda. Look it up. Excellent coverage on the blog "Box Turtle Bulletin"
Or, on a localhost server, create reader.php

Following Code:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Feed Reader</title>
</head>
<body>
<h1>Enter RSS feed information here</h1>
<form method="GET" action="feeds.php">
URI<br />
<input type="text" name="rss_uri" size="70"><br />
Title<br />
<input type="text" name="title" size="15"><br />
<input type="submit" value="Send info">
</form>
<?php print "<p>".date("Y-m-d H:i:s")."</p>"; ?>
</body>
</html>

Then create feeds.php

Following Code:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<?php


$feed=$_GET["rss_uri"];
$title=$_GET["title"];


print "<html>\n<head><title>".$title."</title></head>\n<body>\n<dl>";


$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("<dt><b><a href='%s'>%s</a></b></dt>",
trim($link),htmlspecialchars(trim($title)));
printf("<dd>%s</dd>",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);

?>
</dl>

<p><a href="http://www.sitepoint.com/article/php-xml-parsing-rss-1-0" title="HP and XML: Parsing RSS 1.0">Sitepoint.com</a></p>

</body>
</html>


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.geek

<trainee-geek>winkeye

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 8
Posted Jul 18, 2007 by Táralómë MacHead
erm

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

elf

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 9
Posted Jul 18, 2007 by TRiG (Ireland) Human rights under attack in Uganda. Look it up. Excellent coverage on the blog "Box Turtle Bulletin"
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.geek

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 10
Posted Aug 19, 2007 by Táralómë MacHead
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.

elf

Reply 

Previous PostNext Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Readers
Post: 11
Posted Aug 19, 2007 by TRiG (Ireland) Human rights under attack in Uganda. Look it up. Excellent coverage on the blog "Box Turtle Bulletin"
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.geek

Reply 

Previous PostNo Next Post
Click to Make a Complaint
The Parent Posting, to Which This is a Reply
An Older Reply to the Parent PostingThis PostingA Newer Reply to the Parent Posting
The First Reply to This Posting

Key
Navigation Example
A: An older reply to the parent Posting
B: The parent Posting, to which this is a reply
C: A newer reply to the parent posting
D: The first reply to this Posting
Click to Make a Complaint
 Click on this icon to make a complaint about a specific Posting
Conversation list
<< Nanotechnology in textile finishing-pls help
The meaning of life ... and all that! >>






Disclaimer

Most of the content on h2g2 is created by h2g2's Researchers, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the BBC. The BBC is not responsible for the content of any external sites referenced. In the event that you consider anything on this page to be in breach of the site's House Rules, please click here. For any other comments, please click on the Feedback button above.




About the BBC | Help | Terms of Use | Privacy & Cookies Policy