remove_channel (ReachRSS >= 0.91) Description boolean remove_channel ( string channel_url ) This function removes the specified channel from ReachRSS. The channel will no longer be monitored and any cached items / images will be deleted. Removing a channel is the same as "unsubscribing from an RSS feed" (many RSS readers use this terminology). remove_channel() automatically calls save_data() upon successful removal of the channel. remove_channel() returns true on success, false on failure (if there was a problem saving the data file). If the specified channel never existed, remove_channel() will return true without actually doing anything. Example 1. remove_channel() example $ReachRSS = new ReachRSS(); $ReachRSS->Startup(); $ReachRSS->add_channel("http://www.comicalert.com/public/popular24.xml"); $ReachRSS->remove_channel("http://www.comicalert.com/public/popular24.xml"); This example will subscribe ReachRSS to the "most popular comics" feed at Comic Alert! and then immediatly remove it. See also add_channel(), channel_exists(), channels()
Home | Features | Samples | Demo | Download | Register | Help / Support
|