Honorary and huge wealth
Imagine a site from the most popular portal to get the latest news. Stock price, weather information, news stories, line discussion group, software release ... All this will be dynamically updated, once every hour, no manual intervention. We can imagine that the amount of site visits, the continuous advertising revenue, and the "Akala" of the Net Management Adults.
But now, stop fantasy, start reading, because as long as you pay close attention to this technology, maybe you can become the owner of the site. For your request is just a slight imagination, some smart PHP encodings and several free RSS files. In addition, it is clear that nine parts remaining in this article.
With content, Joint CONTENT, WILL SYNDICATE
We started from the most basic beginning - What is the RSS?
RSS (ie RDF Site Summary) is a format, which is the first description of the contents of the contents on my portions my.netscape.com. Since 1997, a few will be able to click on the link at the end of the article to learn about the long history of RSS. The current stable version is RSS1.0, which is in line with the RDF specification. This version can be said to be light and fun.
The RSS makes it possible to make the network management to promptly publish and distribute the description of the description of the latest most interesting content of a particular location of a particular site. From news articles list to stock market data or weather forecasts, all of which can be released through a good XML document, and can also be analyzed, processed and translated by any XML analyzer.
The list of the latest information on the website is frequently updated, and the RSS makes the distribution of this list possible, which also opened the door for the simple content Simple content on the Web. For the truth, please see the simple example below:
Site A, a news site ("Content Cindida Organizer"), can publish an RSS document containing the latest news list and the corresponding link per hour. This RSS document can be obtained by other sites (such as site B, "Content Collectors"), analyzing and displayed on the index page of site B. Each time a new RSS document is issued, the index page of the site B can be updated automatically to get the latest news.
This solution is effective for both parties in the transaction. Since the links in the RSS document point to the appropriate article on site A, the site A will quickly experience the increase in access. The network management of the site B can take a break a week, because he has a way to automatically update the index page on its site, and this method is merely connecting the index page with the dynamic content released by the site A.
There are many popular sites with detailed RSS or RDF news to the public, such as Freshmeat (http://www.freshmeat.net) and SlashDot (http://www.slashdot.org), of course there are many other sites. In this article, I will widely use the RDF file of the Freshmeat website. One point to explain is that the techniques discussed here can also be applied to any other RSS1.0 or RDF file.
Switching channel (Switching Channels)
A typical RSS document contains a list of resources marked by descriptive metadata, please see the example below:
XML Version = "1.0" encoding = "UTF-8"?>
Tutorials On Web Technologies Description>
http://www.melonfire.com/community/columns/trog/ link>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 100 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 71 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 62 "/>
rdf: SEQ>
items>
CHANNEL>
RDF: About = "http://www.melonfire.com/community/columns/trog/Article.php?i D = 10 0 ">
http://www.melonfire.com/Community/Columns/trog/Article.php?id=100
li
NK>
Work? Find Out here. description>
item>
RDF: About = "http://www.melonfire.com/community/columns/trog/Article.php?i D = 71 ">
http://www.melonfire.com/community/columns/trog/Article.php?id=71 <
/ LINK>
Generate HTML Pages. description>
item>
RDF: About = "http://www.melonfire.com/community/columns/trog/Article.php?i D = 62 ">
/ LINK>
With the mysql grant tables. description>
item>
You can see that the RDF file consists of several boundary points. The first is the document code (proLog).
XML Version = "1.0" encoding = "UTF-8"?>
Then the namespace declaration in the root element.
XMLns = "http://purl.org/rss/1.0/"> Next, it is the
Tutorials On Web Technologies Description>
http://www.melonfire.com/community/columns/trog/ link>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 100 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 71 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 62 "/>
rdf: SEQ>
items>
CHANNEL>
The
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 100 "/>
RDF: resource = "http://www.melonfire.com/community/column/trog/Article.php?id
= 71 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 62 "/>
rdf: SEQ>
items>
You can also place a
So for meat, each
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 100 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 71 "/>
RDF: resource = "http://www.melonfire.com/community/columns/trog/Article.ph
p? id
= 62 "/>
rdf: SEQ>
items>
In this example, the
You can see that the RSS1.0 file is quite straightforward, whether it is manual, or by programming, it is very easy to create. The above examples and explanations are merely illustrative, usually, you can do more things with RSS1.0 and RDF. You'd better look at the links provided at the end of the article to get more information. But before this, let's take a few minutes to discuss all the RSS1.0 documents into your own Web site.