Re: apache::*, simple question.
- Original Message - From: "fliptop" <[EMAIL PROTECTED]> To: "Bob Showalter" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 20, 2002 8:26 PM Subject: RE: apache::*, simple question. > On Tue, 20 Aug 2002 at 16:51, Bob Showalter opined: > > BS:You're joking, right? Apache::DBI is completely useless under mod_cgi. > > when i use it with ordinary cgi programs and postgresql (on linux) i > always see a pool of connections that remain active until httpd is > restarted or the child process(es) that handled the request(s) reaches the > maxrequests limit and dies. i never said anything about mod_cgi. Well, we may have confusion over terminology. I interpreted "ordinary cgi program" as mod_cgi (i.e. a separate process forked to handle each request). Under this, Apache::DBI is utterly useless. If you see a pool of connections, you're talking mod_perl. > > i was under the impression the original question was 'do i need to write > handlers in mod_perl to take advantage of the apache::* modules'. If by "ordinary cgi program" you mean scripts being handled by Apache::Registry (which is a mod_perl handler), then yes, Apache::DBI would work. But yes, there needs to be a mod_perl handler for this to work (even if you don't write the actual handler). This likely works with Apache::PerlRun as well, although I don't really use that so I can't say for sure. The difference between mod_cgi and mod_perl is one uses the SetHandler cgi-script directive while the other uses SetHandler perl-script and PerlHandler directives. Cheers. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache::*, simple question.
On Tue, 20 Aug 2002 at 16:51, Bob Showalter opined: BS:You're joking, right? Apache::DBI is completely useless under mod_cgi. when i use it with ordinary cgi programs and postgresql (on linux) i always see a pool of connections that remain active until httpd is restarted or the child process(es) that handled the request(s) reaches the maxrequests limit and dies. i never said anything about mod_cgi. i was under the impression the original question was 'do i need to write handlers in mod_perl to take advantage of the apache::* modules'. maybe i'm mistaken. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache::*, simple question.
> -Original Message- > From: fliptop [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 20, 2002 4:34 PM > To: Hytham Shehab > Cc: [EMAIL PROTECTED] > Subject: Re: apache::*, simple question. > > > On Tue, 20 Aug 2002 at 21:35, Hytham Shehab opined: > > HS:hi guys, > HS:is it a must to use mod_perl to access all/some > apache::* modules?, i > HS:mean, if i run normal perl and cgi scripts, i won't be > able to access apache > HS:modules? > > it's not necessary to use mod_perl. > > for example, apache::dbi happily maintains persistent db > handles for plain > cgi programs. You're joking, right? Apache::DBI is completely useless under mod_cgi. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache::*, simple question.
On Tue, 20 Aug 2002 at 21:35, Hytham Shehab opined: HS:hi guys, HS:is it a must to use mod_perl to access all/some apache::* modules?, i HS:mean, if i run normal perl and cgi scripts, i won't be able to access apache HS:modules? it's not necessary to use mod_perl. for example, apache::dbi happily maintains persistent db handles for plain cgi programs. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache::*, simple question.
on Tue, 20 Aug 2002 18:35:49 GMT, Hytham Shehab wrote: > is it a must to use mod_perl to access all/some apache::* > modules?, i > mean, if i run normal perl and cgi scripts, i won't be able to access > apache modules? No it is not a must, it depends on the module. Apache::Session, e.g., even doesn't need Apache ;-) -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache::*, simple question.
hi guys, is it a must to use mod_perl to access all/some apache::* modules?, i mean, if i run normal perl and cgi scripts, i won't be able to access apache modules? thanks -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]