Location: PHPKode > scripts > filesnap > filesnap/example1.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.


if ($fp=fopen('snapshot://test.txt','a')) {
	fwrite($fp,"Wrote one line of text\n");

Return current item: filesnap