[mp2] Problem w/Set-Cookie header and Internet Explorer

2004-02-19 Thread Scott Scecina
Hi all, Background: I've developed an application that uses a modified version of Apache::TicketTool (from the book) which I've ported to work with mp2. My development platform is WinXP with Apache 2.0.48, Activeperl 5.8.2 and Randy's build of mod_perl 1.99_12. Everything works great. Today I

modperl@perl.apache.org

2004-02-19 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] I guess there is still the question of why 'goto &NAME' doesn't work. Is this a bug? Is it a known bug? Log.xs:16 does: static void ApacheLog(int level, SV *sv, SV *msg) ... if((lmask == APLOG_DEBUG) && (s->loglevel >= APLOG_DEBUG)) { SV *caller;

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
At 7:53 PM -0500 2/19/04, petersm wrote: >Morbus Iff wrote: >> So, in my case, it appears that eval'ing the module in the .cgi script >> is my only solution, based on this bit from the porting guidelines: >> >> When running under mod_perl, once the server is up @INC is frozen >> and cannot be u

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread petersm
Morbus Iff wrote: > So, in my case, it appears that eval'ing the module in the .cgi script > is my only solution, based on this bit from the porting guidelines: > > When running under mod_perl, once the server is up @INC is frozen > and cannot be updated. The only opportunity to temporarily mo

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Perrin Harkins
On Thu, 2004-02-19 at 18:33, Morbus Iff wrote: > So, in my case, it appears that eval'ing the module in the .cgi script > is my only solution, based on this bit from the porting guidelines: > > When running under mod_perl, once the server is up @INC is frozen > and cannot be updated. The only

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
At 6:27 PM -0500 2/19/04, Morbus Iff wrote: >>You are either getting the wrong module name in some cases, or it is not >>able to read the module file for some reason. Just check $@ for the >>message and find out. > > Can't locate LibDB/DB/MySQL.pm in @INC (@INC contains: > /usr/lib/perl5/5.8.0/i58

Re: Problem when trying to load Apache::Constants

2004-02-19 Thread Geoffrey Young
Sasan Dashtinezhad wrote: > Perl: 5.8.0 > Apache: 2.0.40 > mod_perl: I couldn't find the version, but it's dated Sep 3 2002, and > the size is 136226. with Apache 2.0 you need mod_perl > 1.99 (aka mod_perl 2.0). >> [error] Can't locate object method "boot" via package "mod_perl" at >> /fs/pir

Re: Problem when trying to load Apache::Constants

2004-02-19 Thread Sasan Dashtinezhad
Apache::Constants version = 1.09 --Sasan Gedanken wrote: On Thu, 19 Feb 2004, Sasan Dashtinezhad wrote: What are the version numbers/info for the mod_perl and apache and other packages you are working with? gedanken I ahve a piece of code that tries to use Apache::Constants through use A

Re: Problem when trying to load Apache::Constants

2004-02-19 Thread Sasan Dashtinezhad
Perl: 5.8.0 Apache: 2.0.40 mod_perl: I couldn't find the version, but it's dated Sep 3 2002, and the size is 136226. --Sasan Gedanken wrote: On Thu, 19 Feb 2004, Sasan Dashtinezhad wrote: What are the version numbers/info for the mod_perl and apache and other packages you are working with?

Re: Problem when trying to load Apache::Constants

2004-02-19 Thread Gedanken
On Thu, 19 Feb 2004, Sasan Dashtinezhad wrote: What are the version numbers/info for the mod_perl and apache and other packages you are working with? gedanken I ahve a piece of code that tries to use Apache::Constants through use Apache::Constants qw( REDIRECT ); But when this code is ru

Problem when trying to load Apache::Constants

2004-02-19 Thread Sasan Dashtinezhad
I ahve a piece of code that tries to use Apache::Constants through use Apache::Constants qw( REDIRECT ); But when this code is run, I get the following error message: [error] Can't locate object method "boot" via package "mod_perl" at /fs/piranha2/sasan/PERL/Apache/Constants.pm line 8.! I sear

Re: [mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread Geoffrey Young
> I > played with setting my dispatch handler as a PerlTransHandler, but > mod_proxy seems > to get in there first no matter how I setup the config file, so I got it > in at the > PerlPostReadRequestHandler. But for what it's worth, examining proxyreq > value in > later phases (access, response) i

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
>You are either getting the wrong module name in some cases, or it is not >able to read the module file for some reason. Just check $@ for the >message and find out. Interesting. I got: Can't locate LibDB/DB/MySQL.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/li

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Perrin Harkins
On Thu, 2004-02-19 at 17:38, Morbus Iff wrote: > * the first load of index.cgi uses no DB calls (well, > it does "use LibDB::DB", but DB.pm never gets around > to eval'ing MySQL.pm), so things are cached without it. > > * with all the modules and whatnot cached in the child, > a "u

Re: [mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread John D . Lima
On Feb 19, 2004, at 12:35 PM, Stas Bekman wrote: *snip* I have a PerlPostReadRequestHandler running on a proxy server (using mod_proxy) that wants to intercept/handle various requests directly while proxying others normally. [...] I'd like to just call '$r->proxyreq(0)' to disable mod_proxy for t

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
>> I don't, however, do any error checking on that eval. > >Jinx! Heh, heh :) >> that if a) the eval fails or it gets cached or whatever, then >> b) I'd be returning a blessed object for a module that hasn't >> been loaded. *That* could cause the ->connect to not exist, >> thus causing my error. R

modperl@perl.apache.org

2004-02-19 Thread frederik
Stas Bekman <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Using Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a mod_perl/1.27, perl >> 5.8.0. >> Hi, >> I'm working with some servers which print debugging messages through >> a >> wrapper function that calls Apache::Log::debug, here is a simplif

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Perrin Harkins
On Thu, 2004-02-19 at 17:01, Morbus Iff wrote: > I don't, however, do any error checking on that eval. Jinx! > It seems > that if a) the eval fails or it gets cached or whatever, then > b) I'd be returning a blessed object for a module that hasn't > been loaded. *That* could cause the ->connect t

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Perrin Harkins
On Thu, 2004-02-19 at 16:54, Morbus Iff wrote: > * LibDB::DB is correctly determining the database type. > > * LibDB::DB is correctly returning a blessed > class for that database type (LibDB::DB::MySQL). > > * LibDB::DB::MySQL->connect does exist. > > * LibDB::DB::MySQL->connect doe

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
>Alrighty. I've yet to figure out what my ->connect problem [1] is. >All my settings caching problems have been fixed, as I've yet to >duplicate the issue in about 300 to 400 loads. Anywhere I should >look? What I know: > >[1] http://groups.yahoo.com/group/modperl/message/57303 > Program fragme

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
>>You can learn that you don't have a problem with globals that are in the >>current script's name space and not declared explicitly in any package. >>You may still have problems with globals in other packages, or closures. > >This, as well as http://groups.yahoo.com/group/modperl/message/57338, >p

Re: [mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread Geoffrey Young
> I have a PerlPostReadRequestHandler running on a proxy server (using > mod_proxy) > that wants to intercept/handle various requests directly while proxying > others > normally. To achieve this I currently match against the > '$r->unparsed_uri()' and > actually clear PerlTransHandler ('$r->set_

Re: [mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread Stas Bekman
John D.Lima wrote: Hi, [Apache 2.0.48/mod_perl 1.99_12, linux (debian) 2.4.x] Anyone using the $val arg for Apache::RequestRec::proxyreq(), per http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_proxyreq_ ? synopsis: $ret = $r->proxyreq($val); * arg1: $r (Apache::RequestRec) *

Re: Getting $ENV{variables} in modperl2

2004-02-19 Thread Stas Bekman
Geoffrey Young wrote: Hamilton, Henrique H wrote: I'm new to modperl welcome. be sure to check out the many resources as http://perl.apache.org/ and I was wondering if anyone knew how to print environment variables from modperl2. Any help would be much appreciated. if you mean CGI-specific

Re: [Question] Newbie: Apache::SubProcess to spawn PHP commands

2004-02-19 Thread Stas Bekman
Rob Saunders wrote: Hi, I'm using Mason to dynamically create templated web-pages and this is all working okay, adding headers/footers/menus etc... via the autohandler and "$m->call_next" for the content. However, I also have a number of inherited PHP scripts, the output of which I'd also like

[mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread John D . Lima
Hi, [Apache 2.0.48/mod_perl 1.99_12, linux (debian) 2.4.x] Anyone using the $val arg for Apache::RequestRec::proxyreq(), per http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_proxyreq_ ? synopsis: $ret = $r->proxyreq($val); * arg1: $r (Apache::RequestRec) * arg2: $val (intege

Re: Getting $ENV{variables} in modperl2

2004-02-19 Thread Geoffrey Young
Hamilton, Henrique H wrote: > I'm new to modperl welcome. be sure to check out the many resources as http://perl.apache.org/ > and I was wondering if anyone knew how to print > environment variables from modperl2. > Any help would be much appreciated. if you mean CGI-specific environment var

Getting $ENV{variables} in modperl2

2004-02-19 Thread Hamilton, Henrique H
I'm new to modperl and I was wondering if anyone knew how to print environment variables from modperl2. Any help would be much appreciated. -- Notice: This e-mail message, together with any attachments, contains inform

[Question] Newbie: Apache::SubProcess to spawn PHP commands

2004-02-19 Thread Rob Saunders
Hi, I'm using Mason to dynamically create templated web-pages and this is all working okay, adding headers/footers/menus etc... via the autohandler and "$m->call_next" for the content. However, I also have a number of inherited PHP scripts, the output of which I'd also like to format using my