PHP » PYTHON |
login |
register |
about
|
PYTHON sys_get_temp_dir
is this article helpful?
|
Python replacement for PHP's sys_get_temp_dir
[
edit
| history
]
import tempfile result = tempfile.gettempdir() sys_get_temp_dir(PHP 5 >= 5.2.1) sys_get_temp_dir — Returns directory path used for temporary files Description
string sys_get_temp_dir
( void
)
Returns the path of the directory PHP stores temporary files in by default. Return ValuesReturns the path of the temporary directory. Examples
Example #1 sys_get_temp_dir() example
<?php The above example will output something similar to: C:\Windows\Temp\TuxA318.tmp
|
more
Recently updated
more
Most requested
more
Last requests
|