save (ReachRSS >= 0.91) Description boolean save ( string filename [, string template] ) This functions calls startup() then loads the template, parses it, and attempts to save the output to the specified filename. You can use this function to generate reports (using a specially formatted template file) or to cache the results to an HTML document to save server resources. If template is set, ReachRSS will use this filename as the template file. If it doesn't exist, an error is displayed and save() returns false. If template is not set, the default template (reachrss.tpl) is used. If filename cannot be opened or written to save() returns false. save() returns true on success, false if there was a problem. Example 1. save() example $ReachRSS = new ReachRSS(); $ReachRSS->output("/path/to/save.html","/path/to/my/template.tpl"); See also startup(), template_filename(), output()
Home | Features | Samples | Demo | Download | Register | Help / Support
|