Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Philippe M. Chiasson
Geoffrey Young wrote: anyway, the code is meant to be more of an illustration than a module you would want to use in production, but still... And it suffers from a pretty terrible dependency on the internal structure of the module you are peeking at to be static. You are basically defining a copy

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Geoffrey Young
>> anyway, the code is meant to be more of an illustration than a module you >> would want to use in production, but still... > > > And it suffers from a pretty terrible dependency on the internal structure > of the module you are peeking at to be static. You are basically defining > a copy of t

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Philippe M. Chiasson
Geoffrey Young wrote: The only suggested way to achieve something like that is to piggyback configuration directive. If you have a module that wants to know the value of DirectoryIndex, for instance, you could implement a mod_perl handler that supports a DirectoryIndex directive, and return DECLI

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Geoffrey Young
> The only suggested way to achieve something like that is to piggyback > configuration directive. If you have a module that wants to know the > value of DirectoryIndex, for instance, you could implement a mod_perl > handler that supports a DirectoryIndex directive, and return DECLINED, > passing

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Stas Bekman
Philippe M. Chiasson wrote: Stas Bekman wrote: dorian wrote: is there currently a prescribed method for accessing the "current" configuration for a request, i.e., after all the merges have been done, at the particular stage a request is in? that is, if i want to access the current valid DirectoryI

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Philippe M. Chiasson
Stas Bekman wrote: dorian wrote: is there currently a prescribed method for accessing the "current" configuration for a request, i.e., after all the merges have been done, at the particular stage a request is in? that is, if i want to access the current valid DirectoryIndex when a PerlTypeHandler

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Stas Bekman
dorian taylor wrote: I know you can do: $r->location_merge('container_string'); which forces an earlier merge, but I'm not sure it'll affect the conf tree shown by Apache::Directive. Have you tried looking at the C code to see whether there is a C API for that? well, there's $r->per_dir_config a

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread dorian taylor
> I know you can do: > $r->location_merge('container_string'); > which forces an earlier merge, but I'm not sure it'll affect the conf > tree shown by Apache::Directive. Have you tried looking at the C code to > see whether there is a C API for that? well, there's $r->per_dir_config and $r->requ

Re: perl lib path

2004-07-14 Thread Stas Bekman
Kemin Zhou wrote: [...] "." is automatically removed when that taint mode (-T) is on. Refer to the perlsec Perl manpage for more info. This has nothing to do with mod_perl. > /usr/local/apache2/ > /usr/local/apache2/lib/perl are added when running mod_perl 2, for mp1 compatibility. http://perl.a

Re: perl lib path

2004-07-14 Thread Kemin Zhou
Stas Bekman wrote: Kemin Zhou wrote: My my Apache perl installation, the lib search path is different from the system wide path I am using Linux My Apache Perl (either under mod_perl or cgi) produced the following results This is the content of @INC /usr/lib/perl5/5.8.4/i686-linux-thread-multi-

Re: [mp2] access to merged external (non-perl) config directives

2004-07-14 Thread Stas Bekman
dorian wrote: is there currently a prescribed method for accessing the "current" configuration for a request, i.e., after all the merges have been done, at the particular stage a request is in? that is, if i want to access the current valid DirectoryIndex when a PerlTypeHandler is called, after pos

Re: perl lib path

2004-07-14 Thread Stas Bekman
Kemin Zhou wrote: My my Apache perl installation, the lib search path is different from the system wide path I am using Linux My Apache Perl (either under mod_perl or cgi) produced the following results This is the content of @INC /usr/lib/perl5/5.8.4/i686-linux-thread-multi-ld /usr/lib/perl5/5

perl lib path

2004-07-14 Thread Kemin Zhou
My my Apache perl installation, the lib search path is different from the system wide path I am using Linux My Apache Perl (either under mod_perl or cgi) produced the following results This is the content of @INC /usr/lib/perl5/5.8.4/i686-linux-thread-multi-ld /usr/lib/perl5/5.8.4 /usr/lib/perl5/

Re: Problem with Apache::Session::MySQL

2004-07-14 Thread Perrin Harkins
On Wed, 2004-07-14 at 17:45, Pascal Robert wrote: > I have a strange problem with Apache::Session::MySQL. It create a > session just fine, but it can't update itself. Usually this means that either your session object isn't going out of scope or the values you are writing are not at the top leve

Problem with Apache::Session::MySQL

2004-07-14 Thread Pascal Robert
Hi, I have a strange problem with Apache::Session::MySQL. It create a session just fine, but it can't update itself. When I look at MySQL's binary log, I see the initial INSERT but I don't see any UPDATES: INSERT INTO sessions (id, a_session) VALUES ('9176a7b8acbfdc5697059d9a4fd6046a','\0\0\0

Re: [Fwd: Perl 5.8.5 presentation]

2004-07-14 Thread Stas Bekman
Perrin Harkins wrote: On Wed, 2004-07-14 at 03:50, Stas Bekman wrote: If you read Paul's short presentation or the perldelta file itself, you will see that if you are using threaded mpms with mp2 you may really want to upgrade to that latest version, since it includes a few important ithreads fi

Re: [Fwd: Perl 5.8.5 presentation]

2004-07-14 Thread Perrin Harkins
On Wed, 2004-07-14 at 03:50, Stas Bekman wrote: > If you read Paul's short presentation or the perldelta file itself, you > will see that if you are using threaded mpms with mp2 you may really > want to upgrade to that latest version, since it includes a few > important ithreads fixes. Are you

Re: Check boxes on and off

2004-07-14 Thread David Arnold
Ooops! Sorry all, wrong address. My apologies. At 11:31 AM 7/14/04 -0700, David Arnold wrote: >Don, Bruce, > >I adjusted the pdf and cgi. Now, when the form first comes up, a couple of >checkboxes are on. Then the cgi lights one up and turns one off. > >http://scinux.redwoods.edu/online_testing/Ge

Check boxes on and off

2004-07-14 Thread David Arnold
Don, Bruce, I adjusted the pdf and cgi. Now, when the form first comes up, a couple of checkboxes are on. Then the cgi lights one up and turns one off. http://scinux.redwoods.edu/online_testing/GenerateFDF.pdf username: winnie password: thepooh The new cgi: #! /usr/local/bin/perl -w # File: Ge

Re: accessing loaded modules from other modules

2004-07-14 Thread Perrin Harkins
On Wed, 2004-07-14 at 00:57, [EMAIL PROTECTED] wrote: > just a quick one:How can I access loaded modules from other modules using > mod_perl, i.e. say that I am running module contacts.pm within modperl, > and I want from ContactPersons.pm access the contacts module, given that > the two modules/pa

Re: Apache::Antispam problem

2004-07-14 Thread Geoffrey Young
Mustafa Akgul wrote: > I am having problem in activating Apacahe::AntiSpam. > > I get the "Can't call method "dir_config" on an undefined value > at /usr/lib/perl5/site_perl/5.8.3/Apache/AntiSpam.pm line 15." > > > This on mandrake 10.0 with apache2. I doubt that Apache::AntiSpam has been

Apache::Antispam problem

2004-07-14 Thread Mustafa Akgul
I am having problem in activating Apacahe::AntiSpam. I get the "Can't call method "dir_config" on an undefined value at /usr/lib/perl5/site_perl/5.8.3/Apache/AntiSpam.pm line 15." This on mandrake 10.0 with apache2. PerlModule Apache:.Filter PerlModule Apache::AntiSpam PerlModule Apache::P

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-14 Thread Geoffrey Young
Rando Christensen wrote: > Geoffrey Young wrote: > >> see the DirectoryIndex documentation - you can specify a URL as well as >> individual files, so you can simply point to a mod_perl content >> handler and >> leave mod_autoindex/mod_dir to do what they do best. >> >> if you use DirectoryIndex

Re: Newcomer: error upon loading mod_perl , undefined symbol: Perl_Ipatchlevel_ptr

2004-07-14 Thread Charles A. Monteiro
will do , just was not sure it was a bug in the first place :) our sysadmin decided to call RedHat and get a proper srpm (5.8.3)from them i.e she un-installed 5.8.4 we she had built from source. BTW, RHEL latest version comes with perl 5.8.0. Running the command you suggested I got: ldd /etc/h

[Fwd: Perl 5.8.5 presentation]

2004-07-14 Thread Stas Bekman
Paul Fenwick has posted this to p5p. http://perltraining.com.au/talks/perl-5.8.5.pdf You may find it useful as well in making your decision whether you want to move to 5.8.5 when it gets released (in a few days). If you read Paul's short presentation or the perldelta file itself, you will see th