PHP » PYTHON |
login |
register |
about
|
#Python 2.x only: import os filename = os.tempnam(dir, prefix) tempnam(PHP 4, PHP 5) tempnam — Create file with unique file name Description
string tempnam
( string $dir
, string $prefix
)
Creates a file with a unique filename, with access permission set to 0600, in the specified directory. If the directory does not exist, tempnam() may generate a file in the system's temporary directory, and return the name of that. Parameters
Return ValuesReturns the new temporary filename, or FALSE on failure. Changelog
Examples
Example #1 tempnam() example
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|