home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Neil's C++ Stuff
/
2014-11-mediatemple-neilstuff.zip
/
ex-rss-tasks.php
< prev
next >
Wrap
PHP Script
|
2014-11-20
|
1KB
|
35 lines
<?php
//*[ex-rss-tasks.php]*********************************************************
//
// PHP Example: Really Simple Scheduled Tasks using RSS (RSSt)
//
// Outputs an RSS feed with a unique item *every* time it is executed. This
// will let you know how often a feed is being accessed.
//
//-[History]------------------------------------------------------------------
// 2008-01-30 by NeilO .... Created.
//
//****************************************************************************
$anchor = time();
$today = date("F j, Y, g:i a");
echo('<?xml version="1.0"?>');?><rss version="2.0">
<channel>
<title>RSSt</title>
<link>http://www.neilstuff.com/rsst/</link>
<description>Really Simple Scheduled Tasks</description>
<language>en-us</language>
<copyright>Copyright 2008++ by Neil C. Obremski</copyright>
<webMaster>weenie@gmail.com</webMaster>
<item>
<title>An Entry</title>
<link>http://www.neilstuff.com/rsst#<?php echo($anchor); ?></link>
<description>And hello there: <?php echo($today) ?></description>
<guid>http://www.neilstuff.com/rsst#<?php echo($anchor); ?></guid>
<pubDate>Sun, 25 Jan 2008 21:34:36 GMT</pubDate>
</item>
</channel>
</rss>