Creating a temporary file with tmpfile() : Temporary file « File Directory « PHP
- PHP
- File Directory
- Temporary file
Creating a temporary file with tmpfile()
<?php
$temp_fh = tmpfile();
fputs($temp_fh,"The current time is ".strftime('%c'));
exit(1);
?>
Related examples in the same category