what's the use of this fopen() if you use late file_put_contents() ?