佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1064|回复: 9

RSS Feed

[复制链接]
发表于 15-1-2007 04:02 PM | 显示全部楼层 |阅读模式
RSS feed 多数是用在Blog 或一些news的网站。
现在我有一个网站,会时不时有updates article,我想把那些updated article用RSS给其他人阅读。
要如何开始?可以manually update 吗?

如果是Blog, 我使用xml写rss file, 然后从Database里retrieve updated data.
回复

使用道具 举报


ADVERTISEMENT

发表于 15-1-2007 04:05 PM | 显示全部楼层

回复 #1 shiyou 的帖子

你可以使用 FeedCreator 1.7.2
回复

使用道具 举报

 楼主| 发表于 15-1-2007 05:07 PM | 显示全部楼层
原帖由 sotsot82 于 15-1-2007 04:05 PM 发表
你可以使用 FeedCreator 1.7.2


我找了FeedCreator 1.7.2在google, 是不是这个page? http://www.bitfolge.de/rsscreator-en.html

因为我的website时static information site, 而不是from database 的。要怎样做? Manually update?
回复

使用道具 举报

发表于 15-1-2007 05:11 PM | 显示全部楼层

回复 #3 shiyou 的帖子

static information site 是无法使用那个软件,如果没有错!
回复

使用道具 举报

发表于 15-1-2007 10:14 PM | 显示全部楼层
你只需使用PHP/ASP/ASP.net/JSP/.....从database拿资料,然后输出xml格式就行了
回复

使用道具 举报

 楼主| 发表于 16-1-2007 09:11 AM | 显示全部楼层
原帖由 hui_yang 于 15-1-2007 10:14 PM 发表
你只需使用PHP/ASP/ASP.net/JSP/.....从database拿资料,然后输出xml格式就行了


我的website时static information page, 没有用database的。

还有谁有办法?
回复

使用道具 举报

Follow Us
发表于 16-1-2007 06:51 PM | 显示全部楼层
原帖由 shiyou 于 16-1-2007 09:11 AM 发表


我的website时static information page, 没有用database的。

还有谁有办法?

没注意看到你说你的是static information page
你的意识是说你是使用纯HTML编写咯?
那你更新时,也是直接更新那个HTML档咯?
RSS feed 的格式据我所知,一定要XML的,所以你需要自动/手动更新该XML档
如果是自动更新的话,那你一定需要用到PHP/ASP/ASP.net/...了
PHP/ASP/ASP.net/...也是可以从HTML档拿取资料的,不一定要从database
回复

使用道具 举报

 楼主| 发表于 19-1-2007 10:13 AM | 显示全部楼层
原帖由 hui_yang 于 16-1-2007 06:51 PM 发表

没注意看到你说你的是static information page
你的意识是说你是使用纯HTML编写咯?
那你更新时,也是直接更新那个HTML档咯?
RSS feed 的格式据我所知,一定要XML的,所以你需要自动/手动更新该XML档
如 ...


但我是static html info page, 如何拿html里的content,用php的script 自动更新?我很懒得次manual update那个xml file

我问了好几个人都说好像是不能。有没有RSS expert可以给我答案?
回复

使用道具 举报


ADVERTISEMENT

发表于 20-1-2007 10:26 AM | 显示全部楼层
Hi Shiyou leng lui
[at least the icon shows u're beauty],
----------------------------------------------------------------------------------------------

I have a logic, but it's HARD to explain unless you know what I am saying; actually there are other simpler way to do so.

0. make sure title that you want has a tagging.  e.g. <div id="newstitle">I have a big stomach</div>, <div id="newscontent">My room mate watch porno last night brabra </div>

1. use server side programming language (preferably PHP) to open the website url - make sure url address is correct.  

2. read all the content.I can't remember if I am not mistaken PHP has a CURL, you try to find out, it allows progrmmer to open a static page..read through and use programming to filter all information.

3. filter. and extract useful information based on tag defined. How do you filter it, ask yourself hahah..there's a will theres a way.

4. append the xml file, and update new info.

Precaution: if every address of your static page is different; make sure you placed a full url in your address array to allow the script to run correctly / reading the information / filter / an voila..haha.

Or:

1. place meta title description / meta keyword in every of your static html page.

2. ask PHP / dynamic language technology to read it.

3. append and update xml file

OR,  OR a short cut to skip all this way:

Use dynamic content manaagement system / nowadays like joomla has already conquer most of difficulties like this.  Do hope my suggestion / rubbish helps here.  



Cheeeers,
Calverstine.
回复

使用道具 举报

发表于 3-2-2007 10:46 AM | 显示全部楼层
原帖由 shiyou 于 19-1-2007 10:13 AM 发表


但我是static html info page, 如何拿html里的content,用php的script 自动更新?我很懒得次manual update那个xml file

我问了好几个人都说好像是不能。有没有RSS expert可以给我答案?

你可以用HTML 的comment <!-- begin bla bla --> 和 <!-- end bla bla -->来实现
然后用PHP分析,不过如果你要自动更新的话,就需要用到 cron job 了,你的web hosting 支持 cron job 吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 27-8-2025 06:12 PM , Processed in 0.141030 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表