PHP Classes

File: gFeed.test4.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   gFeed   gFeed.test4.php   Download  
File: gFeed.test4.php
Role: Example script
Content type: text/plain
Description: Test: how to append datas to RSS created in example 3
Class: gFeed
Stream wrapper to read and write RSS feeds
Author: By
Last change: * making visible without user login
Date: 16 years ago
Size: 359 bytes
 

Contents

Class file image Download
<?
include("gFeed.php");
/*
* Opening a local RSS for write a new one
*/
$f = fopen("rss://newRSS.xml","a");
   
$title = "Test Entry N 3";
   
$link = "http://cesars.users.phpclasses.org/gfeed?test";
   
$author = "Cesar D. Rodas";
   
$date = '2007-07-24 14:17:00';
   
$description = "Test description";
   
fwrite($f,1);
fclose($f);

?>