PHP Options/Info Функции
PHP Manual

sys_get_temp_dir

(PHP 5 >= 5.2.1)

sys_get_temp_dirReturns 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.

Примеры

Пример #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

Смотрите также


PHP Options/Info Функции
PHP Manual

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/toplevels/data/www/maripoza.ru/fc7a82cd8e0116192ce432b06b9bd9c9/sape.php on line 219

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/toplevels/data/www/maripoza.ru/fc7a82cd8e0116192ce432b06b9bd9c9/sape.php on line 225