diff --git a/reference/apache/functions/apache-note.xml b/reference/apache/functions/apache-note.xml index 60ce1a0172..7791ed2430 100644 --- a/reference/apache/functions/apache-note.xml +++ b/reference/apache/functions/apache-note.xml @@ -1,6 +1,5 @@ - - + apache_note @@ -15,10 +14,13 @@ stringnote_value - apache_note is an Apache-specific function - which gets and sets values in a request's + Apache-specific function which gets and sets values in a request's notes table. + + The main use for apache_note is to pass information + from one module to another within the same request. + @@ -56,6 +58,71 @@ If the note cannot be retrieved, &false; is returned. + + + &reftitle.examples; + + + Passing information between PHP and Perl + + +]]> + + +request()->main(); + +# Get passed data +my $name = $r->notes('name'); + +# some processing + +# Pass result back to PHP +$r->notes('resultdata', $result); +]]> + + + + + + Logging values in access.log + + +]]> + + + + + + + + + + &reftitle.seealso; + + + virtual + + + + + apache_reset_timeout @@ -35,6 +35,17 @@ &reftitle.notes; ¬e.sm.disabled; + + + &reftitle.seealso; + + + set_time_limit + ignore_user_abort + + + + + @@ -58,11 +58,31 @@ + + &reftitle.examples; + + + <function>getallheadres</function> example + + $value) { + echo "$name: $value\n"; +} + +?> +]]> + + + + + &reftitle.notes; ¬e.apache.nsapi-module; - + &reftitle.seealso; diff --git a/reference/apache/functions/virtual.xml b/reference/apache/functions/virtual.xml index 9c5c101a23..5024f47b13 100644 --- a/reference/apache/functions/virtual.xml +++ b/reference/apache/functions/virtual.xml @@ -1,5 +1,5 @@ - + @@ -67,7 +67,7 @@ 4.0.6 - This function may be used on PHP files. However, it is typically + This function may be used on PHP files. However, it is typically better to use include or require for PHP files. @@ -78,14 +78,21 @@ + + &reftitle.examples; + + See apache_note for an example. + + + &reftitle.notes; - The query string can be passed to the included file but - $_GET is copied from the parent script and only - $_SERVER['QUERY_STRING'] is filled with the passed - query string. The query string may only be passed when using Apache 2. + The query string can be passed to the included file but + $_GET is copied from the parent script and only + $_SERVER['QUERY_STRING'] is filled with the passed + query string. The query string may only be passed when using Apache 2. The requested file will not be listed in the Apache access log. @@ -97,6 +104,16 @@ ¬e.apache.nsapi-module; + + + &reftitle.seealso; + + + apache_note + + + +