★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.putenv.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PHP オプション/情報
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PHP オプション/情報
* error_log
* error_reporting
* extension_loaded
* getenv
* get_cfg_var
* get_current_user
* get_magic_quotes_gpc
* get_magic_quotes_runtime
* getlastmod
* getmyinode
* getmypid
* getmyuid
* getrusage
* phpinfo
* phpversion
* php_logo_guid
* php_sapi_name
* putenv
* set_magic_quotes_runtime
* set_time_limit
* get_loaded_extensions
* get_extension_funcs
* get_required_files
* get_included_files
Manual: putenv
View the source code for this pageSearch the site



Previous page
 php_sapi_name
 Updated
Mon, 14 Aug 2000
set_magic_quotes_runtime 
Next page


putenv

(PHP3 , PHP4 )

putenv -- 環境変数の値を設定する

説明

void putenv (string setting)

サーバーの環境変数に setting を追加します。

例 1. 環境変数の設定


putenv ("UNIQID=$uniqid");
      


User Contributed Notes: putenv


wk@zeelandnet.nl
13-May-2000 04:14
The following code works correctly for me:

$t = "bla bla";
putenv("what=$t");
echo getenv("what");

and actually writes "bla bla" to the screen. However, if you go to another page than the one in which you did the putenv, the environment variable is gone.



 About Notes


Previous page
 php_sapi_name
 Updated
Mon, 14 Aug 2000
set_magic_quotes_runtime 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.