Login   Register  
PHP Classes

File: Abs_Xml_Rss/AbsAtomWriter10/example_write_atom_1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Costin Trifan  >  Abs_Xml_Rss  >  Abs_Xml_Rss/AbsAtomWriter10/example_write_atom_1.php  >  Download  
File: Abs_Xml_Rss/AbsAtomWriter10/example_write_atom_1.php
Role: Example script
Content type: text/plain
Description: Example writing an ATOM 1.0 feed
Class: Abs_Xml_Rss
Read and write RSS and Atom feeds
Author: By
Last change:
Date: 5 years ago
Size: 1,577 bytes


Class file image Download
# No cache headers
header("Expires: Mon, 05 June 2001 05:06:07 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header('Cache-Control: pre-check=0, post-check=0, max-age=0');
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");


$xml = new AbsAtomWriter10();


$xml->AddNamespaces(); // could be empty, but the function call is required to close the feed tag !

$xml->AddBaseTags('June Framework Blog''Latest entries on: June Framework Blog',
'http://june-js.com/blog/''self''Mon, 20 Apr 2009 22:00:40''Costin Trifan');

$c1 "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat"
$c2 "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis
doloribus asperiores repellat"
$xml->AddEntry('AbsTemplate - A simple PHP Template Engine''http://june-js.com/blog/post.php?pid=11''Sun, 12 Apr 2009 02:01:52 GMT'$c1);
$xml->AddEntry('XLog - A Log class for PHP''http://june-js.com/blog/post.php?pid=10''Wed, 18 Mar 2009 14:05:29'$c2);