putenv
putenv
(PHP 4, PHP 5, PHP 7)
putenv — Sets the value of an environment variable
Description
bool putenv ( string $setting )
Adds setting
to the server environment. The environment variable will only exist for the duration of the current request. At the end of the request the environment is restored to its original state.
Setting certain environment variables may be a potential security breach. The safe_mode_allowed_env_vars directive contains a comma-delimited list of prefixes. In Safe Mode, the user may only alter environment variables whose names begin with the pref