PHP.nl

apache_setenv

apache_setenv

Set an Apache subprocess_env variable

bool **apache_setenv** string $variable string $value bool $walk_to_top
sets the value of the Apache

environment variable specified by . apache_setenv``variable

Opmerking: > When setting an Apache environment variable, the corresponding

variable is not changed.

$_SERVER

variableThe environment variable that's being set.

value The new value. variable

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

return.success

**Voorbeeld: Setting an Apache environment variable using **

<?php
apache_setenv("EXAMPLE_VAR", "Example Value");
?>

Opmerking: > can be paired up with across separate pages or for setting variables to pass to Server Side Includes (.shtml) that have been included in PHP scripts. apache_setenv``apache_getenv

apache_getenv