PHP 5 >= 5.2.1, PHP 7, PHP 8
sys_get_temp_dir - Returns directory path used for temporary files
Code Examples

sys_get_temp_dir( ): string

Returns the path of the directory PHP stores temporary files in by default.


This function has no parameters.

Return Values

Returns the path of the temporary directory.

Related Functions

Example of sys_get_temp_dir

Show all examples for sys_get_temp_dir

PHP Version: