reason
A completely unknown problem occurred due to the first call to RSS,.
currently there is a blog in the web site, but it is not a WP or other third-party suite, but a blog written by yourself, which can post, view a list of all articles, and rewrite the network address rules with htaccess.
climb
I checked the operation mode of RSS
http://raymondchou.pixnet.net.
. His practice is to build a table of numbers and import all the contents that need to be made into RSS. Finally, use php while to print out the key data of this data table, and add the tag
on the RSS, such as < title >
, and so on. Is this a way that I have seen so far that seems to have been made by RSS? Is this the standard method of operation?
XML Format?
because I currently connect with others, I mainly want to update my article to his post. I was given a XML Format format, and there are really a lot of tags on it.
this is one of the paragraphs:
<startYmdtUnix>1457280000000</startYmdtUnix> //Mandatory
<endYmdtUnix>1457480000000</endYmdtUnix> //Mandatory
<title>String // article title</title> //Mandatory
<category>String</category> //Mandatory
<subCategory>String</subCategory> //Optional
<publishTimeUnix>1457480000000</publishTimeUnix> //Mandatory
<updateTimeUnix>1457480000000</updateTimeUnix> //Optional
//Optional
// 0 stands for general article with plain text, images and short video
// 1 stands for long video news. Warning!!! if the article is long video news, this tag is necessary and must be 1.
// 2 stands for the comic book.
// 5 is for video content, only allow one video and text in contents.
// 6 stand for trailer for a specific movie, only allow one video and text in contents.
<contentType>0, 1, 2, 5, 6</contentType>
<thumbnail>String // relative file of thumbnail file</thumbnail> //Optional
<contents> //Contain at least one of image, video, text. Can be multiple.
<image>
<title>String // image title</title> //Optional
<description>String // image caption</description> //Optional
<url>String // relative file path of image file</url> //Mandatory
<thumbnail>String // relative file of thumbnail file</thumbnail> //Optional
</image>
<video>
<title>String // video title</title> //Optional
<description>String // video caption</description> //Optional
<url>String // relative file path of video file</url> //Mandatory
<thumbnail>String // relative file path of thumbnail file</thumbnail> //Optional
<restrictedCountries> //Optional
<country>String // ISO 31661 alpha2</country>
<country>String // ISO 31661 alpha2</country>
<country>... // others</country>
</restrictedCountries>
<width>449</width> //Optional
<height>101</height> //Optional
</video>
<text>
<content> //Mandatory
<![CDATA html tag or pure text ]]>
</content>
</text>
</contents>
problems arise
-
Is the
- counterpart the same as RSS?
-
XML Format
is the way eachtag
RSS with me in the right direction? - that is to say, when I add a new blog post, in addition to sending a copy to the number table that I originally want to display on my web site, I also send the blog content that needs to be called RSS to another RSS special data table, and then print it out to the counterpart to get it?
- is this method a standard practice? Does the
- phrase "when I add an article, the opposite party can catch it", does it refer to this RSS? Can I just send the content of the blog to the number of RSS databases, and then use php to print the articles in this database and add the tag
XML Format
above it?
XML Format
provided by the Sorry for having a lot of questions, but it really bothers me for days