file write with PHP for SnapsDaily