apache_noteGet and set apache request notes Description
stringfalse apache_note(string
$note_name, stringnull $note_value = null)
This function is a wrapper for Apache's The main use for apache_note is to pass information from one module to another within the same request. Parameters
Return Values
If Changelog
Examples
Example #1 Passing information between PHP and Perl # 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 # "%{sessionID}n" can be used in the LogFormat directive
See Also
|