<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.sys-get-temp-dir.php',
    1 => 'sys_get_temp_dir',
    2 => 'Returns directory path used for temporary files',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Функції налаштування та отримання інформації про PHP',
  ),
  'prev' => 
  array (
    0 => 'function.set-time-limit.php',
    1 => 'set_time_limit',
  ),
  'next' => 
  array (
    0 => 'function.version-compare.php',
    1 => 'version_compare',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/sys-get-temp-dir.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sys-get-temp-dir" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sys_get_temp_dir</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.1, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">sys_get_temp_dir</span> &mdash; <span class="dc-title">Returns directory path used for temporary files</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.sys-get-temp-dir-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sys_get_temp_dir</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Returns the path of the directory PHP stores temporary files in by
   default.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sys-get-temp-dir-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sys-get-temp-dir-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns the path of the temporary directory.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.sys-get-temp-dir-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 <span class="function"><strong>sys_get_temp_dir()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Create a temporary file in the temporary <br />// files directory using sys_get_temp_dir()<br /></span><span style="color: #0000BB">$temp_file </span><span style="color: #007700">= </span><span style="color: #0000BB">tempnam</span><span style="color: #007700">(</span><span style="color: #0000BB">sys_get_temp_dir</span><span style="color: #007700">(), </span><span style="color: #DD0000">'Tux'</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$temp_file</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Поданий вище приклад виведе щось
схоже на:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">C:\Windows\Temp\TuxA318.tmp</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.sys-get-temp-dir-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.tmpfile.php" class="function" rel="rdfs-seeAlso">tmpfile()</a> - Creates a temporary file</span></li>
    <li><span class="function"><a href="function.tempnam.php" class="function" rel="rdfs-seeAlso">tempnam()</a> - Create file with unique file name</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>