Creating a temporary file with tmpfile()
<?php $temp_fh = tmpfile(); fputs($temp_fh,"The current time is ".strftime('%c')); exit(1); ?>