Flummoxed by IT: Writing temporary files in PHP in a cross platform safe manner