MANUAL DE PHP

(y algo mas)windsurf pozo izquierdo
Google
search for in the  
ELMARRAJO.COM mysql bulma desarrollo web linux fedora html ayuda

windsurf mercedes camper

apache_note

(PHP 3 >= 3.0.2, PHP 4, PHP 5)

apache_note -- Obtener y establecer las notas de petición de apache

Descripción

string apache_note ( string nombre_nota [, string valor_nota] )

apache_note() es una función específica de Apache que obtiene y define valores en la tabla notes de una petición.

Lista de parámetros

nombre_nota

El nombre de la nota.

valor_nota

El valor de la nota.

Valores retornados

Si es llamada con un argumento, devuelve el valor actual de la nota nombre_nota. Si es llamada con dos argumentos, define el valor de la nota nombre_nota a valor_nota y devuelve el valor previo de la nota nombre_nota. Si la nota no puede ser recuperada, se devuelve FALSE.



add a note add a note User Contributed Notes
apache_note
ckm at NOSPAM dot crust dot net
16-Oct-2001 01:52
apache_note() does not work on requests to a symlink, only on actual files.  Eg. if http://indices.com.es/index.html 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
06-Sep-2001 12: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.

Note: successive calls to apache_note with the same KEY overwrite the VALUE. Ie:

               apache_note("LAYOUT","originoff");
               apache_note("LAYOUT","footeroff");

Will only send the last note. You need to do something like:

               apache_note("LAYOUT","originoff");
               apache_note("LAYOUT-2","footeroff");

To get both variables through. How you retrieve this is obviously up to the module receiving notes, of course...

--Nathan
fredrik dot ekengren at mandarinen dot se
24-Jul-2001 04: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.

It took a little while to figure it out, but here's some sample code that could help anyone with the same problem.

From PHP file:

<?
apache_note
("name", $HTTP_COOKIE_VARS["User"]);

// Put all post variables into apache notes
while (list($key,$value) = each($HTTP_POST_VARS))
 
apache_note($key, $value);

// Call perl script
virtual("/perl/some_script.pl");
$result = apache_note("resultdata");
?>

From Perl file:

# Get Apache request object
my $r = Apache->request()->main();

# Get passed data
my $name = $r->notes('name');
my $more_data = $r->notes('more_data');

# some processing

# Pass result back to PHP
$r->notes('resultdata', $result);


// Fredrik
leon at leonatkinson dot com
11-Sep-1999 03:48
This function is a wrapper for Apache's table_get and table_set.  It
edits the table of notes that exists during a request.  The table's
purpose is to allow Apache modules to communicate.  Here are some
further details I found in the mailing list archives:
<P>
Rasmus wrote:
<P>
The main use for apache_note() is to pass information
from one module to another within the same request.  I haven`t seen an
actual implementation that uses this yet, but it is quite possible for
someone to write a module which performs some sort of action at one of the
other stages of the request and stores some information in the Apache note
table which will then be available to PHP when the request reaches the
content-handling stage.  Or, one could have a logging module that reads
something from the Apache Note table set by PHP.
<P>
David Sklar wrote:
<P>You can use it to facilitate communication between modules that act on the
request at different stages. I use it to record userids in logfiles. In
some PHP that gets auto_prepend-ed, I do a
<P>
apache_note(`sessionID`,$sessionID);
<P>
(where $sessionID has been slurped out of a cookie and processed)
<P>
and then, in my httpd.conf, part of my LogFormat is
<P>
"%{sessionID}n"
<P>
so that sessionID gets written to the logfile.
<P>
If you have other modules that process the request before or after PHP
does (authentication, fixups, whatever..) you can have them talk to PHP or
PHP talk to them through the notes table.

Citas célebres

A mamá se le olvida que yo llevo tanto tiempo buscando las galletas como ella escondiéndolas.

Daniel el travieso
Personaje de ficción creado por Hank Ketcham
(1920-2001)
Citas en tu mail
©Contenidos Gratis

Ilusiones Opticas
ilusion_optica_021.jpg
Contenidos Web

Chiste de... Niños
Paliza consentida

Un niño va corriendo alocadamente por la calle y tropieza con un señor, y éste le pregunta:

- ¿Dónde vas tan aprisa?

- A mi casa para que mi madre me dé una paliza.

- ¿Y para una paliza corres tanto?

- Es que si no llego pronto, me la dará mi padre.
Chistes en tu mail
©ContenidosGratis

Humor Gráfico
humor_grafico_061.jpg
Contenidos Web

Inicio | Acción | Estrategia | Palabras | Puzzles | Solitarios | Foro Trucos
Cake ManiaCake Mania
Jugadores: 6835
Categoría del juego: Acción
Objetivo del juego: Ayuda a Jill a recuperar la pastelería de su abuela llevando su propia pastelería; consigue clientes y gana dinero.
Rainbow WebRainbow Web
Jugadores: 2199
Categoría del juego: Puzzles
Objetivo del juego: Rompe un pegajoso hechizo y salva un reino de fantasía en Rainbow Web. Tendrás toneladas de diversión mientras juegas a este mágico desafío para la mente.
Mahjongg FortunaMahjongg Fortuna
Jugadores: 12462
Categoría del juego: Solitarios
Objetivo del juego: Velocidad y habilidad mental son las armas más importantes en esta versión de un antiguo juego asiático. Despeja el tablero lo antes posible haciendo clic en las fichas iguales y gánate la fama eterna de la puntuación más alta.
Chainz 2Chainz 2
Jugadores: 6955
Categoría del juego: Puzzles
Objetivo del juego: Entra en el mundo de las combinaciones con Chainz 2: Relinked, emocionante secuela del exitazo del año pasado, Chainz. Gira eslabones y crea combinaciones de 3 ó más.
DeliciousDelicious
Jugadores: 4405
Categoría del juego: Acción
Objetivo del juego: ¿Eres un as de la multitarea? ¿Quieres que tus clientes estén contentos? ¡Pues Delicious es tu juego! Sacia el apetito de los clientes y tenlos contentos; ¡no te arriesgues!
BookwormBookworm
Jugadores: 4568
Categoría del juego: Palabras
Objetivo del juego: Junta las letras para formar palabras. ¡Las palabras más largas valen más puntos!
ZumaZuma
Jugadores: 4976
Categoría del juego: Acción
Objetivo del juego: Controla el ídolo de la rana de piedra de los antiguos Zuma en este intrigante enigma de acción. ¡Dispara bolas para formar conjuntos de tres, pero si dejas que lleguen a la calavera dorada morirás!
Jewel of AtlantisJewel of Atlantis
Jugadores: 3798
Categoría del juego: Puzzles
Objetivo del juego: Descubre la ciudad hundida de la Atlántida y busca valiosos tesoros. Viaja más allá de las profundidades del mar y vive trepidantes aventuras en Jewel of Atlantis.
Jewel QuestJewel Quest
Jugadores: 3727
Categoría del juego: Puzzles
Objetivo del juego: Convierte la arena de la antigua selva en oro tan rápido como puedas juntando grupos de 3 elementos. ¡Los grupos más grandes valen más puntos!
Bejeweled 2Bejeweled 2
Jugadores: 3659
Categoría del juego: Puzzles
Objetivo del juego: Con cuatro modos de juego únicos y fascinantes, nuevas piezas de juego explosivas e imponentes fondos planetarios, Bejeweled 2 es mucho más adictivo que nunca.
Contenidos gratis en tu webSiguiente >>

Fotos divertidas
fotos_increibles_0008.jpg
Contenidos Web
microrobots avion deportes riesgo recetas cocina canaria juegos online gratis moto motociclismo horoscopos naranjas valencianas surf canarias montañismo ciudades turismo postales gratis library Horoscopos Diarios Windsurf Canarias
fregadero microondas placa electrica bañopreparar camper pantalla plananevera compresor electricacamper fiat ducato camper baño quimicomampara enrollable bañocamper aire climatizadofurgoneta surf windsurffurgoneta surf windsurftelevisor furgonetas camperfurgonetas camper cama

Sudoku del día
Nivel de dificultad: Fácil



Cómo jugar:
El juego consiste en colocar los números del 1 al nueve de tal forma que no se repita el mismo número en la columna, fila y caja (bloques 3x3 enmarcados).

©Contenidos Gratis | Sudoku en tu mail
Sucedió el...

30 de agosto de 1617

Fallece Santa Rosa de Lima, por la que se celebra el "Día de la Patrona de América".
Efemérides en tu mail
©Contenidos Gratis
windsurf canarias youtube porno canarias baleares valencia madrid fallera mayor campus party alcacer feria valencia fernando alonso loterias dinero inversiones violencia de genero makro empresas cartera soledad tolerancia metro valencia gobierno de españa violencia de genero UIMP navidad