<?php
/** * In this example we use the filesnap stream wrapper to write to a file. * Each time this script is called, the wrapper will make a new snapshot of 'test.txt', * and then write an additional line onto the end of the script. */
require("filesnap.class.php");
if ($fp=fopen('snapshot://test.txt','a')) { fwrite($fp,"Wrote one line of text\n"); fclose($fp); }
?>
|