php - apache_setenv

Description

bool apache_setenv ( string $variable, string $value [, bool $walk_to_top] )

apache_setenv() sets the value of the Apache environment variable specified by variable.

Note: When setting an Apache environment variable, the corresponding $_SERVER variable is not changed.

Parameters


variable

The environment variable that's being set.

value

The new variable value.

walk_to_top

Whether to set the top-level variable available to all Apache layers.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example 202. Setting an Apache environment variable using apache_setenv()

apache_setenv("EXAMPLE_VAR", "Example Value");

No comments:

Post a Comment