sys_get_temp_dir(3) php man page | unix.com

Man Page: sys_get_temp_dir

Operating Environment: php

Section: 3

SYS_GET_TEMP_DIR(3)							 1						       SYS_GET_TEMP_DIR(3)

sys_get_temp_dir - Returns directory path used for temporary files

SYNOPSIS
string sys_get_temp_dir (void )
DESCRIPTION
Returns the path of the directory PHP stores temporary files in by default.
RETURN VALUES
Returns the path of the temporary directory.
EXAMPLES
Example #1 sys_get_temp_dir(3) example <?php // Create a temporary file in the temporary // files directory using sys_get_temp_dir() $temp_file = tempnam(sys_get_temp_dir(), 'Tux'); echo $temp_file; ?> The above example will output something similar to: C:WindowsTempTuxA318.tmp
SEE ALSO
tmpfile(3), tempnam(3). PHP Documentation Group SYS_GET_TEMP_DIR(3)
Related Man Pages
tempnam(3c) - opensolaris
tmpnam(3c) - sunos
tempfile(1) - debian
tempnam(3) - php
tmpfile(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update