set_time_limit
version_compare
PHP Options/Info 함수 목록
PHP Manual

# sys_get_temp_dir

(PHP 5 >= 5.2.1)

sys_get_temp_dir — Returns directory path used for temporary files

### 설명

string sys_get_temp_dir ( void )

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

### 반환값

Returns the path of the temporary directory.

### 예제

Example #1 sys_get_temp_dir() 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;
?>`

위 예제의 출력 예시:

    C:\Windows\Temp\TuxA318.tmp

### 참고

- tmpfile() - Creates a temporary file
- tempnam() - Create file with unique file name

set_time_limit
version_compare
PHP Options/Info 함수 목록
PHP Manual