[PHP] save attibute contents to a file.