Formatting code for GetRSSInfo
==[[PhplistDocumentation Phplist Documentation]] » [[RssFunctionsInfo RSS Functions]] » ==
----
=====Get RSS =====
phplist allows you to [[GetRSSInfo import RSS feeds]] and input the imported items in messages. See [[RssFunctionsInfo RSS Functions]] for details on how to use RSS functions.
===Description===
Clicking on **##Get RSS##** in the phplist [[PhplistDocumentation main menu]] will retrieve RSS feeds for **all the RSS feeds** tied to your system.
//Example://
You have two lists with two RSS feeds, when you click on **##Get RSS##**, you get the following report:
%%Downloading RSS Feeds
Parsing http://www.phplist.com/test.rss..
..failed
Parsing http://www.phplist.com/othertest.rss..
..ok
15 items, 13 new items%%
In the first RSS feed, the import failed for some reason (you can try to [[ListListsInfo check your RSS source]] to see if it's valid). In the second RSS feed, the import succeeded, and 13 new items were imported (supposing that you had already imported 2 items).
Another reason the import might fail is some ISPs restrict the ability of a PHP program to go out and grab content off other pages. //''(Can someone add details--how to check whether your PHP version is setup to do this or not?)''//
The retrieval of RSS feeds through ""GetRSS"" can be automated by using a [[CommandLineScriptInfo commandline script]] and/or a [[SetupCronJob cron job]]. Remember to change the following setting in the config.php file:
%%(php)# if you have set up a cron to download the RSS entries, you can set this to be 0
define("MANUALLY_PROCESS_RSS",0);%%
===Purge RSS===
If you are experimenting with RSS feeds or your feeds get messed up somehow, you may want to [[PurgeRss purge the RSS feeds]]. The **##purgerss##** link is found on the Main Page under RSS Functions.
Once on the PurgeRss page, you simply enter the number of days back to purge the RSS entries and hit enter. NOTE: PHPList 2.10.2 (and possibly other versions) has a bug on this page--you must enter a negative number for the days to purge. For instance, to purge entries for 10 days back, enter -10, or to purge 30 days enter -30.
**Related pages:**
-[[PHPlistRssConceptualSetup Conceptual Setup of RSS feed distribution via phplist]]
-[[RSSFunctionsInfo using RSS feeds]]
-[[ListListsInfo adding RSS source to a list]]
-[[CommandLineScriptInfo Using a commandline script]]
-[[SetupCronJob Setting up a cron job]]
----
CategoryDocumentation
----
=====Get RSS =====
phplist allows you to [[GetRSSInfo import RSS feeds]] and input the imported items in messages. See [[RssFunctionsInfo RSS Functions]] for details on how to use RSS functions.
===Description===
Clicking on **##Get RSS##** in the phplist [[PhplistDocumentation main menu]] will retrieve RSS feeds for **all the RSS feeds** tied to your system.
//Example://
You have two lists with two RSS feeds, when you click on **##Get RSS##**, you get the following report:
%%Downloading RSS Feeds
Parsing http://www.phplist.com/test.rss..
..failed
Parsing http://www.phplist.com/othertest.rss..
..ok
15 items, 13 new items%%
In the first RSS feed, the import failed for some reason (you can try to [[ListListsInfo check your RSS source]] to see if it's valid). In the second RSS feed, the import succeeded, and 13 new items were imported (supposing that you had already imported 2 items).
Another reason the import might fail is some ISPs restrict the ability of a PHP program to go out and grab content off other pages. //''(Can someone add details--how to check whether your PHP version is setup to do this or not?)''//
The retrieval of RSS feeds through ""GetRSS"" can be automated by using a [[CommandLineScriptInfo commandline script]] and/or a [[SetupCronJob cron job]]. Remember to change the following setting in the config.php file:
%%(php)# if you have set up a cron to download the RSS entries, you can set this to be 0
define("MANUALLY_PROCESS_RSS",0);%%
===Purge RSS===
If you are experimenting with RSS feeds or your feeds get messed up somehow, you may want to [[PurgeRss purge the RSS feeds]]. The **##purgerss##** link is found on the Main Page under RSS Functions.
Once on the PurgeRss page, you simply enter the number of days back to purge the RSS entries and hit enter. NOTE: PHPList 2.10.2 (and possibly other versions) has a bug on this page--you must enter a negative number for the days to purge. For instance, to purge entries for 10 days back, enter -10, or to purge 30 days enter -30.
**Related pages:**
-[[PHPlistRssConceptualSetup Conceptual Setup of RSS feed distribution via phplist]]
-[[RSSFunctionsInfo using RSS feeds]]
-[[ListListsInfo adding RSS source to a list]]
-[[CommandLineScriptInfo Using a commandline script]]
-[[SetupCronJob Setting up a cron job]]
----
CategoryDocumentation



