trying to format the php file_put_contents output, not having much luck.