Source for file cached.php
Documentation is available at cached.php
require_once 'System/Folders/Cached.php';
//show the path of the config file
echo 'Config file: ' . $sf->getDefaultConfigFile () . "\r\n";
//load the stored settings from last time
$err = $sf->loadFromFile ();
echo 'Home: ' . $sf->getHome () . "\r\n";
echo 'Documents: ' . $sf->getDocuments () . "\r\n";
$doc = $sf->getDocuments ();
echo "Setting new Documents directory\r\n";
//Set an own documents directory
// and save the settings for next time
$sf->setDocuments ('/strange/path/to/MyDocuments/');
echo 'New Documents directory: ' . $sf->getDocuments () . "\r\n";
echo "Run this program again to reset the path to default\r\n";
echo "Unsetting the documents directory\r\n";
echo 'New Documents directory: ' . $sf->getDocuments () . "\r\n";
Documentation generated on Mon, 11 Mar 2019 15:52:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|