PHP Classes

File: rss_config.php

Recommend this page to a friend!
  Packages of Mike Jordan   RSS Fetch XML   rss_config.php   Download  
File: rss_config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: RSS Fetch XML
Fetch and cache an RSS or an Atom feed from a URL
Author: By
Last change: Refactor RSS configuration to return an array
Date: 3 days ago
Size: 312 bytes
 

Contents

Class file image Download
<?php

return [
   
"cache_dir" => "path/to/cache/", //Path to cache dir
   
"cache_expire" => 3600, //Cache expire in secs - ie: 3600 = 1 hr
   
"rss_error" => "RSS fetch failed - RSS Url or feed may be unavailable", //Custom error message on feed failure
   
"rss_max" => 12 //Max number of links displayed
];