load_data

(ReachRSS >= 0.91)
load_data -- Loads cached data from the default data file or from the specified filename

Description

boolean load_data ( [ string filename ] )

Loads cached data from the file specified by the filename parameter, or from the filename specified by calling data_filename() before calling load_data(), or if neither is set, from the default filename "reachrss.dat".

You do not need to call this function if you call startup(), output(), or save() - in these cases it's done automatically.

Returns true on success, or false on failure (eg: the specified file does not exist or is not readable).

Example 1. load_data() example

$ReachRSS = new ReachRSS();
$Success = $ReachRSS->load_data("/path/to/data/filename.dat");

This example will instruct ReachRSS to load cached data from /path/to/data/filename.dat.

See also data_filename(), save_data(), startup(), output(), save()

Back to Function List

 

Home | Features | Samples | Demo | Download | Register | Help / Support