Resources for rssnotify
http://rss.cnn.com/rss/edition.rss
https://feeds.bbci.co.uk/news/rss.xml
https://rss.nytimes.com/services/xml/rss/nyt/World.xml
https://moxie.foxnews.com/google-publisher/latest.xml
- Create database and use schema.sql for the items table.
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`guid` varchar(255) NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`link` varchar(255) NOT NULL,
`tstamp` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB
- Place rssnotify.php on your webserver, and change the database-config.
<?php
$dbuser = "dbuser"; // Your dbuser
$dbpass = "dbpass"; // Your db password
$dbname = "dbname"; // Your database name
$dbhost = "localhost"; // Your database host
- Put in a few test-entries.
- Navigate to this file via url in your browser to test it.
If you want to create a feed on your own, please follow the following format
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Notifier</title>
<link>https://rssnotify.app/news.xml</link>
<description>XML Description</description>
<language>de-de</language>
<item>
<guid isPermaLink="true">unique-id-oooggtooihhhoodsxxcgjdxxddsd</guid>
<link>https://rssnotify.app/</link>
<title>Welcome to RssNotify!</title>
<description>This is the default RSS-Feed of RssNotify. We will keep you up to date here. Have fun!</description>
<pubDate>Sun, 17 Sep 2023 08:44:42 Z</pubDate>
</item>
</channel>
</rss>
- The link tag in item is optional
- The guid MUST to be unique and permanent in the feed. If you generate a new unique-id on every request - it will notify you repeatedly.
<?php
//Best to use a md5 of a unique property of your rss-item. For example the link.
$uid = "unique-id-".md5($item->link);
- Make sure your web-server delivers the xml with xml mime-type.
<?php
header('Content-Type: text/xml');