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

PHP Home Page

Manual Table of Contents
Up to PHP options/info
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PHP options/info
* 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
* zend_logo_guid
* 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
Sat, 12 Aug 2000
set_magic_quotes_runtime 
Next page


putenv

(PHP3 , PHP4 )

putenv -- Set the value of an environment variable.

Description

void putenv (string setting)

Adds setting to the server environment.

Example 1. Setting an Environment Variable


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
Sat, 12 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.