(PHP 4, PHP 5, PHP 7)
apache_note — ȡ�û����� apache �����¼
$note_name
[, string $note_value
= ""
] ) : string��������� Apache table_get �� table_set �İ�װ�� ���༭�������д��ڵ� notes �� ������Ŀ�������� Apache ģ�����ͨѶ��
apache_note() ����Ҫ��;����ͬһ�������У���һ��ģ�鴫����Ϣ����һ��ģ�顣
note_name
note ����
note_value
note ֵ��
���ֻ��һ���������ã��ؼ�¼
note_name �ĵ�ǰֵ������������������ã���¼
note_name ��ֵ��Ϊ
note_value �����ؼ�¼
note_name ��ǰһ��ֵ�����δ�ܻ�ȡ��¼���� FALSE
��
Example #1 Passing information between PHP and Perl
<?php
apache_note('name', 'Fredrik Ekengren');
// Call perl script
virtual("/perl/some_script.pl");
$result = apache_note("resultdata");
?>
# Get Apache request object my $r = Apache->request()->main(); # Get passed data my $name = $r->notes('name'); # some processing # Pass result back to PHP $r->notes('resultdata', $result);
Example #2 Logging values in access.log
<?php
apache_note('sessionID', session_id());
?>
# "%{sessionID}n" can be used in the LogFormat directive