apache_note() does not work on requests to a symlink, only on actual files. Eg. if index.php is symlinked to login.php, then any apache_note() in login.php will not be available to other apache modules such as logging.
![]() | apache_note说明string apache_note ( string note_name [, string note_value] )apache_note() 是用于 Apache 的函数,可以取得或者设置请求 notes 表中的值。 返回值如果只有一个参数调用,则返回记录 note_name 的当前值。如果用两个参数调用,则将记录 note_name 的值设为 note_value 并返回记录 note_name 的前一个值。如果未能获取记录,则返回 FALSE。 ![]()
ckm at NOSPAM dot crust dot net
17-Oct-2001 04:52
apache_note() does not work on requests to a symlink, only on actual files. Eg. if index.php is symlinked to login.php, then any apache_note() in login.php will not be available to other apache modules such as logging.
nathan at thelinuxcommunity dot org
07-Sep-2001 03:25
Used this with mod_layout... very handy. :) Used my PHP code in my header to check session variables and validate the session. If the session is not valid, I use apache_note to tell mod_layout not to display the content page or the footer, just the error page I generate in the header page.
fredrik dot ekengren at mandarinen dot se
24-Jul-2001 07:45
In a project I was involved in, we needed to pass data from mod_php4 to mod_perl. We used apache_note() to do the work for us.
leon at leonatkinson dot com
12-Sep-1999 06:48
This function is a wrapper for Apache's table_get and table_set. It
| ![]() |