fopen, fread, etc zijn allemaal kut functies vind ik. Gebruik file_put_contents en file_get_contents.