and the RSS feed of the Help net is on the basis of this program to do a little transformation, the main
If an array string is output and the encoding problem is resolved.
The PHP source code and code are explained in detail as follows:
RSS
"renlu. xu's blog"Xml. link (url_for (: action => "start",: only_path => false ))Xml. description "My life My love"Xml. language "zh_CN"Xml. ttl 60For event in @ posts doXml. item doXml. title (event. title)Xml. description (event. body)Xml. pubDate (event. created_at.to_s (: rfc822 ))Xml. guid (event. id)Xml. link ("http ://..... # {Event. id }")EndEndEndEndThis method is not suitable for many articles on the Internet. In this step, access http: // localhost: 3000/post/
How to use: Save the following code as rss.asp (remember to save in UTF-8 format) and upload to the site root directory, the rest of the work is to find the RSS feed to submit the portal to submit your feed address http://your domain name/rss.asp
Demo: http://www.366mv.cn
Code
" => "2.0″,
"XMLNS:DC" => "HTTP://PURL.ORG/DC/ELEMENTS/1.1/") do
Xml.channel do
Xml.title "Renlu.xu ' s Blog"
Xml.link (Url_for (:action=> "start": Only_path=>false))
Xml.description "My Life, My Love"
Xml.language "ZH_CN"
Xml.ttl 60
For event in @posts do
Xml.item do
Xml.title (Event.title)
Xml.description (Event.body)
Xml.pubdate (event.created_at.to_s (: rfc822))
Xml.guid (event.id)
Xml.link ("Http://.....#{event.id}")
End
End
End
End
This method
Because the site needs to read different sources of RSS feed, write a PHP program to read the RSS feed, in order to facilitate reading and understand the process of implementation, plus comments, and we learn together. and help Easy Net RSS reading is in this program based o
when processing a customer's website today, it encountered a serious problem: HTML Code cannot be automatically wrapped. if the cause is unknown, it is useless for a long time ,, later, I checked the information to get the HTML code automatically wrapped. the article is as follows: press enter, it means that a
PHP implements line feed output for carriage return in html source code
Enter a line break in the source code, but do not display characters such as br. We need to use php to turn the characters into characters. Let's take a look at the following.
Knowledge Expansion
Transfer sequence
Description
Php replaces textbox carriage return with html line feed code. The source of MailBody is sometimes the text content in TextBox. However, if you do not process the text content, the text will not have any format, and it will be squeezed together and displayed row by row. The source of the current Mail Body is sometimes the text content in TextBox. However, if the
Author: Peter Bernhardt
3 leaf development
August 2005
I wrote a conclusion many years ago, that is, I still have no idea about everything in the world. I don't know. In fact, it's quite self-developed to see the world from the very beginning, but I'm crazy, but now I am very humble. In fact, in the time of the online network, this is just a sudden increase, just like I cannot keep up with the endless online moments, new insights, and opinions. I don't know how to keep up with the
This article mainly introduces the xml-based RSS feed generation function of php, and analyzes the definition and usage of the RSS feed source file generation class based on the instance form, for more information about how to create an xml-based RSS
Today, a netizen left a message saying that the feed of the blog has been hung, the symptoms are as follows:
The Chrome Direct Open subscription page appears as follows:
This page contains the following errors:
error on line 1 at column 1:document are empty
Below is a rendering of th E page up to the.
FeedDemon Hint: This feed contains errors.
After the addition also has no effect, can be
document in xml format, get this address to your RSS reader or anything else.
Source code: http://bitbucket.org/medcl/sina-twitter-rss-feed-generator/downloadshttp://www.box.net/shared/059xe6z2skURL: http://medcl.net/SinaRss.aspx? Uid = 1, 1451057603
Replace the number following uid = with your user ID.
This ID is unk
Today suddenly a netizen message said blog feed hung, the symptoms are as follows:
Chrome opens the subscription page directly as shown below:
This page contains the following errors:error on line 1 at column 1:document are Emptybelow is a rendering of the page up to the first error.
FeedDemon Tip: This feed contains errors.
After the addition also has no influence, can use normally.
The fruit reader is
PHP reads a simple RSS (Feed) instance. Recently, I am working on blogs, but it is troublesome to synchronize various blogs. Fortunately, every blog has its own RSS aggregation system, which can be used to implement synchronous blog calling, so I started to use RSS to get a blog recently, but it is troublesome to synch
Today suddenly a netizen message said blog feed hung, the symptoms are as follows:
Chrome opens the subscription page directly as shown below:
This page contains the following errors:error on line 1 at column 1:document are Emptybelow is a rendering of the page up to the first error.
FeedDemon Tip: This feed contains errors.
After the addition also has no influence, can use normally.
The fruit reader is al
This article mainly describes how to use PHP to read RSS (Feed) instances. it is relatively simple. if you need it, refer to getting a blog recently. However, it is troublesome to synchronize various blogs, fortunately, every blog has its own RSS aggregation system, which can be used to implement synchronous blog calling. Therefore, we can use
@ Author YHC
In this tutorial, we will create an rss reader using easyUI framework.
View DEMO
We will use the following plug-ins:
Layout: Create an application interface.Datagrid: displays the rss feed list.Tree: displays the feed channel.
Step 1: Create Layout[Html]JQuery
Have the Result Set of a Stored Proc Sent to the RSS feed.by Jbrooks 14. December 12:44I wanted to monitor one of the my system from my desk top and from my phone. I found a simple solution whereby I can subscribe to the result set of a stored proc by using RSS. So I can having this feed MS Outlook, my phone or my web browser.First, Visual Studio makes creating a
Recently in the blog, but a variety of blog synchronization between the trouble, fortunately, every blog has its own RSS aggregation system, can be implemented through the RSS blog synchronization call, so their own hands with the implementation of RSS blog to publish, in which the study of PHP read RSS.
Changing the computer and system all day long is too inconvenient to use the client software to read the feed... try the online RSS reader.
It is easier to use an RSS reader to browse news and blogs.
You can use an online RSS reader to add and view images anywhere.
Use topim to enjoy more interconnection and sharing.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.