Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Secure-temporary-file/PHP/secure-temporary-file.php
Normal file
9
Task/Secure-temporary-file/PHP/secure-temporary-file.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$fh = tmpfile();
|
||||
// do stuff with $fh
|
||||
fclose($fh);
|
||||
// file removed when closed
|
||||
|
||||
// or:
|
||||
$filename = tempnam('/tmp', 'prefix');
|
||||
echo "$filename\n";
|
||||
// open $filename and do stuff with it
|
||||
Loading…
Add table
Add a link
Reference in a new issue