array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.putenv.php', 1 => 'putenv', ), 'up' => array ( 0 => 'ref.info.php', 1 => 'PHP Seçenek/Bilgi İşlevleri', ), 'prev' => array ( 0 => 'function.phpversion.php', 1 => 'phpversion', ), 'next' => array ( 0 => 'function.restore-include-path.php', 1 => 'restore_include_path', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/info/functions/putenv.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
putenv — Bir ortam değişkenine değer atar
atama_dizgesi
'ni sunucu ortamına ekler. Yeni ortam
değişkeni sadece o anki istek için istek süresince geçerli olacaktır. İstek
sunumunun sonunda ortam özgün durumuna getirilir.
atama_dizgesi
"FOO=BAR"
gibi bir atama dizgesi.
Örnek 1 - Bir ortam değişkeninin atanması
<?php
putenv("UNIQID=$uniqid");
?>