超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<apache_response_headersascii2ebcdic>
Last updated: Fri, 22 Jun 2007

apache_setenv

(PHP 4 >= 4.2.0, PHP 5)

apache_setenv -- Set an Apache subprocess_env variable

Description

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

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

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

例子 1. Setting an Apache environment variable using apache_setenv()

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

apache_setenv() can be paired up with apache_getenv() 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().




add a note add a note User Contributed Notes
apache_setenv
sixxgate at yahoo dot com
23-Jan-2003 07:56
When you want to set variables to pass to Server Side Includes (.shtml) included in PHP scripts, use this.

<apache_response_headersascii2ebcdic>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22