removed the mode parameter from the file_put_contents() function