Unix and Linux Discussions Tagged with environment variable |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
1,280 |
Shell Programming and Scripting |
|
|
|
6 |
4,366 |
Shell Programming and Scripting |
|
|
|
2 |
1,787 |
Shell Programming and Scripting |
|
|
|
6 |
18,579 |
Shell Programming and Scripting |
|
|
|
5 |
3,884 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,017 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,068 |
Solaris |
|
|
|
6 |
5,438 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
18,241 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
51,695 |
UNIX for Dummies Questions & Answers |
|
|
|
19 |
7,447 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,803 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,936 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,171 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
19,454 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,647 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,419 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,336 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,106 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,970 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
16,963 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,600 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,508 |
UNIX for Dummies Questions & Answers |
APACHE_SETENV(3) 1 APACHE_SETENV(3)
apache_setenv - Set an Apache subprocess_env variable
SYNOPSIS
bool apache_setenv (string $variable, string $value, [bool $walk_to_top = false])
DESCRIPTION
apache_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.
PARAMETERS
o $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 VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Setting an Apache environment variable using apache_setenv(3)
<?php
apache_setenv("EXAMPLE_VAR", "Example Value");
?>
NOTES
Note
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 ALSO
apache_getenv(3).
PHP Documentation Group APACHE_SETENV(3)