simple php file handling class