apache_setenv 设置 Apache 子进程环境变量 &reftitle.description; boolapache_setenv stringvariable stringvalue boolwalk_to_top&false; apache_setenv 设置由variable指定的 Apache 环境变量值。 当设置了某 Apache 环境变量, 相应的 $_SERVER 变量不会改变。 &reftitle.parameters; variable 将被设置的环境变量。 value variable 值。 walk_to_top 是否将所设置的顶层变量应用到所有 Apache 层。 &reftitle.returnvalues; &return.success; &reftitle.examples; 使用 <function>apache_setenv</function> 设置一个 Apache 环境变量 ]]> &reftitle.notes; apache_setenv 可与 apache_getenv 配合使用,以在不同页面间传递变量,或将 PHP 脚本中已设置变量传入 Server Side Includes (.shtml)页面。 &reftitle.seealso; apache_getenv