Query: apache_setenv
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
APACHE_SETENV(3) 1 APACHE_SETENV(3) apache_setenv - Set an Apache subprocess_env variableSYNOPSISbool apache_setenv (string $variable, string $value, [bool $walk_to_top = false])DESCRIPTIONapache_setenv(3) 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.PARAMETERSo $variable - The environment variable that's being set. o $value - The new $variable value. o $walk_to_top - Whether to set the top-level variable available to all Apache layers.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Setting an Apache environment variable using apache_setenv(3) <?php apache_setenv("EXAMPLE_VAR", "Example Value"); ?>NOTESNote apache_setenv(3) can be paired up with apache_getenv(3) across separate pages or for setting variables to pass to Server Side Includes (.shtml) that have been included in PHP scripts.SEE ALSOapache_getenv(3). PHP Documentation Group APACHE_SETENV(3)
Related Man Pages |
---|
apache_request_headers(3) - php |
virtual(3) - php |
is_string(3) - php |
session_unregister(3) - php |
wincache_ucache_dec(3) - php |
Similar Topics in the Unix Linux Community |
---|
Checking if string contains integer |
Resolve variable inside another variable |
Apache Virtual Path |
Error executing a variable |
Sum of Columns |