Home  >  Article  >  php教程  >  分享一个RSS类

分享一个RSS类

WBOY
WBOYOriginal
2016-06-07 17:23:401336browse

RSS(简易信息聚合,也叫聚合内容)是一种描述和同步网站内容的格式。网络用户可以在客户端借助于支持RSS的聚合工具软件,在不打开网站内容页面的情况下阅读支持RSS输出的网站内容。
RSS的作用,就是帮助用户快速筛选获取网站最新更新的自己喜欢的内容,节省了到网站去搜寻的时间。似乎博客总是少不了RSS,下面分享一个我在WBlog程序中使用的一个RSS类
完整的代码:

 
  
// +---------------------------------------------------------------------- 
  
// $Id$ 
  
   
  
/** 
  
 +------------------------------------------------------------------------------ 
  
 * RSS生成类 
  
 +------------------------------------------------------------------------------ 
  
 * @author    yhustc  
  
 * @version   $Id$ 
  
 +------------------------------------------------------------------------------ 
  
 */
  
class RSS 
  
{ 
  
    /** 
  
     +---------------------------------------------------------- 
  
     * RSS频道名 
  
     +---------------------------------------------------------- 
  
     * @var string 
  
     * @access protected 
  
     +---------------------------------------------------------- 
  
     */
  
    protected $channel
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn