Главная страница


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : Dmitry Tsigelnik                     2:5020/400     21 Oct 2003  16:51:46
 To : Andrew Alakozow
 Subject : Re: Кукбук
 -------------------------------------------------------------------------------- 
 
 Andrew Alakozow пишет:
 
 AA> # in one handler
 AA> $r->pnotes("Name", $name);
 
 AA> # in another handler
 AA> $name = $r->pnotes("Name");
 
 Спасибо. Я как всегда сначала спрошу в форуме, а потом ответ сам сразу 
 в доке найду :-)
 Тока я смотрю что ты все в сторону mod_perl1 смотришь...
 А мне надо mod_perl2, а там так:
 
 Handlers Communication
 Apache handlers can communicate between themselves by writing and 
 reading notes. It doesn't matter in what language the handlers were 
 implemented as long as they can access the notes table.
 
 For example inside a request handler we can say:
 
   my $r = shift;
   my $c = $r->connection;
 
   $c->notes->set(mod_perl => 'rules');
 
 and then later in a mod_perl filter handler this note can be retrieved 
 with:
 
   my $f = shift;
   my $c = $f->connection;
   my $is = $c->notes->get("mod_perl");
 
   $f->print("mod_perl $is");
 --------------------
 Dmitry Tsigelnik
 -- 
 Отправлено через сервер Форумы@mail.ru - http://talk.mail.ru
 --- ifmail v.2.15dev5
  * Origin: Talk.ru (2:5020/400)
 
 

Вернуться к списку тем, сортированных по:

 Тема:    Автор:    Дата:  
 Re: Кукбук   Dmitry Tsigelnik   21 Oct 2003 16:51:46 
Архивное /ru.cgi.perl/6488fa25acff.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional