home *** CD-ROM | disk | FTP | other *** search
/ Neil's C++ Stuff / 2014-11-mediatemple-neilstuff.zip / ex-rss-tasks.php < prev    next >
PHP Script  |  2014-11-20  |  1KB  |  35 lines

  1. <?php
  2. //*[ex-rss-tasks.php]*********************************************************
  3. //
  4. // PHP Example: Really Simple Scheduled Tasks using RSS (RSSt)
  5. //
  6. // Outputs an RSS feed with a unique item *every* time it is executed.  This
  7. // will let you know how often a feed is being accessed.
  8. //
  9. //-[History]------------------------------------------------------------------
  10. // 2008-01-30 by NeilO .... Created.
  11. //
  12. //****************************************************************************
  13.  
  14. $anchor = time();
  15. $today = date("F j, Y, g:i a"); 
  16.  
  17. echo('<?xml version="1.0"?>');?><rss version="2.0">
  18. <channel>
  19.     <title>RSSt</title>
  20.     <link>http://www.neilstuff.com/rsst/</link>
  21.     <description>Really Simple Scheduled Tasks</description>
  22.     <language>en-us</language>
  23.     <copyright>Copyright 2008++ by Neil C. Obremski</copyright>
  24.     <webMaster>weenie@gmail.com</webMaster>
  25.  
  26.     <item>
  27.         <title>An Entry</title>
  28.         <link>http://www.neilstuff.com/rsst#<?php echo($anchor); ?></link>
  29.         <description>And hello there: <?php echo($today) ?></description>
  30.         <guid>http://www.neilstuff.com/rsst#<?php echo($anchor); ?></guid>
  31.         <pubDate>Sun, 25 Jan 2008 21:34:36 GMT</pubDate>
  32.     </item>
  33.  
  34. </channel>
  35. </rss>