Home > php教程 > PHP开发 > body text

分享一个RSS类

WBOY
Release: 2016-06-07 17:23:40
Original
1454 people have browsed it

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

<?php  
  
// +---------------------------------------------------------------------- 
  
// | YBlog 
  
// +---------------------------------------------------------------------- 
  
// | Copyright (c) 2008 http://www.yhustc.com All rights reserved. 
  
// +---------------------------------------------------------------------- 
  
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) 
  
// +---------------------------------------------------------------------- 
  
// | Author: yhustc <yhustc@gmail.com> 
  
// +---------------------------------------------------------------------- 
  
// $Id$ 
  
   
  
/** 
  
 +------------------------------------------------------------------------------ 
  
 * RSS生成类 
  
 +------------------------------------------------------------------------------ 
  
 * @author    yhustc <yhustc> 
  
 * @version   $Id$ 
  
 +------------------------------------------------------------------------------ 
  
 */
  
class RSS 
  
{ 
  
    /** 
  
     +---------------------------------------------------------- 
  
     * RSS频道名 
  
     +---------------------------------------------------------- 
  
     * @var string 
  
     * @access protected 
  
     +---------------------------------------------------------- 
  
     */
  
    protected $channel</yhustc>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template