apache_note
取得或设置 apache 请求记录
&reftitle.description;
stringfalseapache_note
stringnote_name
stringnullnote_value&null;
这个函数是 Apache table_get 和
table_set 的包装。
它编辑了请求中存在的 notes 表。
这个表的目的是允许 Apache 模块进行通讯。
apache_note 的主要用途是在同一个请求中,从一个模块传递信息到另一个模块。
&reftitle.parameters;
note_name
note 名。
note_value
note 值。
&reftitle.returnvalues;
如果 note_value 被省略或者为 &null;,则返回记录
note_name 的当前值。否则将记录
note_name 的值设为
note_value 并返回记录
note_name 的前一个值。如果未能获取记录,则返回 &false;。
&reftitle.changelog;
&Version;
&Description;
8.0.0
现在 note_value 可为 null。
&reftitle.examples;
在 PHP 与 Perl 之间传递信息
]]>
request()->main();
# 获取传递的数据
my $name = $r->notes('name');
# 一些处理
# 将结果返回给 PHP
$r->notes('resultdata', $result);
]]>
在 access.log 中记录值
]]>
&reftitle.seealso;
virtual