data_filename

(ReachRSS >= 0.91)
data_filename -- Sets the filename to use with load_data() and save_data()

Description

string data_filename ( [ string filename ] )

If filename is specified, data_filename() will set the filename to use with load_data() and save_data(). data_filename() returns the previous value (by default "reachrss.dat").

Note that you can also set the data filename by calling load_data() and save_data() with the optional filename parameter.

Example 1. data_filename() example

$ReachRSS = new ReachRSS();
$Prev = $ReachRSS->data_filename("/path/to/data/filename.dat");
print $Prev;

This example will instruct ReachRSS to use /path/to/data/filename.dat as it's data file, and will print the previous value (by default "reachrss.dat").

See also load_data(), save_data()

Back to Function List

 

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