Persistent db with PerlRunOnce On?

2000-08-16 Thread Pramod Sokke
Hi, Solaris 2.7/Apache 1.3.12/mod_perl 1.24 with Apache::PerlRun (PerlRunOnce On) Is it possible to establish db connection pooling with PerlRunOnce On? I'm just moving all our old extremely dirty scripts to mod_perl. I'm noticing random behaviour of fresh connections being made to the db inspit

Re: [new module] Apache::PageKit

2000-08-16 Thread T.J. Mather
> > Here is a brief description of the module: > > PageKit is a set of Perl modules that provides an application > > framework based on mod_perl and HTML::Template. It is based on the > > Model/View/Controller approach to design, with complete seperation > > of Perl from HTML. It includes sess

Re: getting rid of nested sub lexical problem

2000-08-16 Thread chris
Converting "sub foo" into "local *foo = sub" won't work when the function is called before is declared, because the local only works for the rest of the block, not the entire block. i.e. you can't do foo(); local *foo = sub { ... }; Plus, I think you usually need the trailing semicol

Re: getting rid of nested sub lexical problem

2000-08-16 Thread Dan Campbell
[EMAIL PROTECTED] wrote: > > Due to forgetfulness I was recently bitten by the infamous "my() Scoped > Variable in Nested Subroutines" problem using Apache::Registry, and it got > me thinking about whether it is fixable. > > >From the diagnostics: > This problem can usually be solved by making

[JOB]: Seattle - perl/mod_perl programmer

2000-08-16 Thread Andrew Wyllie
Hi all, The NewSof Group is a Seatlle based company specializing in Content Development and building web based communities. We currently are looking for a Perl Programmer (~3+ yrs exp.) comfortable with working in a UNIX environment to help us build community/collaboration, asset managment

param quirk

2000-08-16 Thread Michael Blakeley
It seems that Apache::Request::param returns inputs like [EMAIL PROTECTED] as email=mike [EMAIL PROTECTED] I can live with that, since + is a reserved character and lots of apps expect '+' to read as ' '. But the problem is that [EMAIL PROTECTED] also comes through as

Sticky forms for Apache::ASP

2000-08-16 Thread Paul Lindner
Hi, We've worked out a solution to get sticky form fields inside Apache::ASP We use HTML::FillinForm and a custom tag to get the desired behaviour. Put this is in global.asa: sub fillin { my $args = shift; my $html = shift; my $fif = new HTML::FillInForm; my $output = $fif->fill(

Re: [new module] Apache::PageKit

2000-08-16 Thread T.J. Mather
I got a couple of e-mails asking where this module could be found. I plan to release the module in a few days on CPAN. I will make an announcement on this list when I do. -TJ Mather

new cgi mod_perl question

2000-08-16 Thread Alex Menendez
does anyone know how to get the output of a standalone cgi script from a mod_perl module I have tried all the subrequest stuff but I can't get it to work. Apache seems to parse the cgi file once a handler has been called. simply writing a handler that returns DECLINED every time it is called li

Re: [new module] Apache::PageKit

2000-08-16 Thread Matt Sergeant
On Tue, 15 Aug 2000, T.J. Mather wrote: > I have an addition for the Apache/Perl Module List, under PerlHandler's > > PageKit cmpOApplication framework w/ HTML::Template TJMATHER > > Here is a brief description of the module: > PageKit is a set of Perl modules that provi

creating db handles externally

2000-08-16 Thread Ian Mahuron
I have the following code in several of my mod_perl handlers: my $dbh = DBI->connect($c{db}{dsn}, $c{db}{user}, $c{db}{pass}) || die(DBI::errstr); Is there a way to do something like: my $dbh = $MyModules::DBH; instead of putting connect string in *EVERY* script? to get the database handle?

[new module] Apache::PageKit

2000-08-16 Thread T.J. Mather
I have an addition for the Apache/Perl Module List, under PerlHandler's PageKit cmpOApplication framework w/ HTML::Template TJMATHER Here is a brief description of the module: PageKit is a set of Perl modules that provides an application framework based on mod_perl and HTML::

RE: DB persistence

2000-08-16 Thread Michael Peppler
Pramod Sokke writes: > >There's an Apache::Sybase::DBlib module floating around somewhere that > >you could use if you don't want to make all those changes. > > I'm right now using that module and it's with that module that I'm getting > the message in my error logs about establishing conne

Re: canned footers

2000-08-16 Thread jbodnar
On 16-Aug-2000 Vivek Khera wrote: >> "BWH" == Bruce W Hoylman <[EMAIL PROTECTED]> writes: > > BWH> Have you looked at Apache::Sandwich from CPAN? It is easy to implement > BWH> and I have used it for awhile now to add confidentiality headers and > BWH> footers to pages in a small to medium

RE: DB persistence

2000-08-16 Thread Pramod Sokke
>There's an Apache::Sybase::DBlib module floating around somewhere that >you could use if you don't want to make all those changes. I'm right now using that module and it's with that module that I'm getting the message in my error logs about establishing connection to db for every connect call.

Re: canned footers

2000-08-16 Thread jbodnar
Take a look at Apache::ProxyStuff. It requires you set another server (can be virtual) but it doesn't care about methods or content type. On 16-Aug-2000 Alex Menendez wrote: > Your right. this works great for html! Unfortunately, however, Apache > sandwich really does not work for me because it

RE: DB persistence

2000-08-16 Thread Geoffrey Young
> -Original Message- > From: Mark D Wolinski [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 16, 2000 2:32 PM > To: [EMAIL PROTECTED] > Subject: RE: DB persistence > > > If I have mod_perl installed, will CGI's not running under > mod_perl benefit > from Apache::DBI as well if th

RE: canned footers

2000-08-16 Thread Geoffrey Young
> -Original Message- > From: Alex Menendez [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 16, 2000 2:07 PM > To: [EMAIL PROTECTED] > Cc: The MODPERL > Subject: Re: canned footers > > > Your right. this works great for html! Unfortunately, however, Apache > sandwich really does n

RE: DB persistence

2000-08-16 Thread Michael Peppler
Pramod Sokke writes: > Hmmm, the reason I'm not using Apache::DBI right now is coz our current > scripts are using DBlib to talk to Sybase. Looks like I have to make > thousands of changes all over the place after all and start using DBI. > Those of you folks already using Apache::DBI, can you

RE: DB persistence

2000-08-16 Thread Mark D Wolinski
If I have mod_perl installed, will CGI's not running under mod_perl benefit from Apache::DBI as well if they connect to the same database? Mark W > -Original Message- > From: Shimon Rura [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 16, 2000 2:22 PM > To: Pramod Sokke; [EMAIL PRO

RE: DB persistence

2000-08-16 Thread Pramod Sokke
Hmmm, the reason I'm not using Apache::DBI right now is coz our current scripts are using DBlib to talk to Sybase. Looks like I have to make thousands of changes all over the place after all and start using DBI. Those of you folks already using Apache::DBI, can you tell me what kind of message is

Re: canned footers

2000-08-16 Thread Vivek Khera
> "BWH" == Bruce W Hoylman <[EMAIL PROTECTED]> writes: BWH> Have you looked at Apache::Sandwich from CPAN? It is easy to implement BWH> and I have used it for awhile now to add confidentiality headers and BWH> footers to pages in a small to medium site. The only real trick is that you are r

Re: canned footers

2000-08-16 Thread Alex Menendez
Your right. this works great for html! Unfortunately, however, Apache sandwich really does not work for me because it only deals with GET requests and it can not deal with cgi requests directly. I would need to alter my cgi's in order to use sandwich. I am looking for a mod_perl solution that wi

RE: DB persistence

2000-08-16 Thread Shimon Rura
It seems to be starting a new connection each time. If you want connection pooling, you should use the Apache::DBI module, which will transparently pool DBI connections for you. Shimon Rura > -Original Message- > From: Pramod Sokke [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 16

DB persistence

2000-08-16 Thread Pramod Sokke
Hi all, I think I misled everybody with my previous question on this topic. To put it in simple words: Apache 1.3.12/mod_perl 1.24/Solaris 2.7 I'm establishing db connection at server startup and the logs indicate that's done. But in my subsequent calls to 'connect' in my scripts, I see the same

Re: canned footers

2000-08-16 Thread Bruce W. Hoylman
Have you looked at Apache::Sandwich from CPAN? It is easy to implement and I have used it for awhile now to add confidentiality headers and footers to pages in a small to medium site. cpan> m /Apache::Sandwich/ Module id = Apache::Sandwich CPAN_USERID VKHERA (Vivek Khera <[EMAIL PROTECTED]

RE: canned footers

2000-08-16 Thread Jerrad Pierce
This already exists, can't get more canned than that. checkout mod_layout here: http://www.tangent.org/mod_layout/ Granted it's not a perl module, but it works and is rather customizable... >-Original Message- >From: Alex Menendez [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, August 16,

RE: canned footers

2000-08-16 Thread jbodnar
It may not be exactly what you're looking for but try looking at Apache::Sandwich or Apache::ProxyStuff On 16-Aug-2000 Alex Menendez wrote: > hello, all > > I am trying to write a module that generates a canned footer for all > html and cgi pages on my site. > the html part is pretty easy and I

canned footers

2000-08-16 Thread Alex Menendez
hello, all I am trying to write a module that generates a canned footer for all html and cgi pages on my site. the html part is pretty easy and I have already implemented it. However, I am currently having trouble adding it to standalone cgi scripts that are not parsed by the server. I have tried

Errors from Apache.pm

2000-08-16 Thread Simon_Wilcox
All, I am seeing the following errors in my apache error log. These have appeared since moving to a Linux/mod_perl1.24 combination (from NT/1.23) so I don't know if they come from 1.24 or from the -w switch being handled better under unix. Anyone know what these ar

RE: getting rid of nested sub lexical problem

2000-08-16 Thread chris
I would agree, except that rearranging subroutines and variable declarations in some automated way seems to be a more difficult (and potentially buggier) task. --Chris On Wed, 16 Aug 2000, Douglas Wilson wrote: > > That gives me a 'Variable "$counter" may be unavailable at ./tst2 line 17.' > wa

$r->custom_response

2000-08-16 Thread Bill Moseley
Apache/1.3.12 (Unix) mod_perl/1.24 Perl 5.6.0 In which handlers can $r->custom_response be set? Is there any way to chain ErrorDocuments? I'd like to add a header and do some special logging on some errors, but let the normal error response do its work. And, as has been said before, it would

Re: getting rid of nested sub lexical problem

2000-08-16 Thread Randal L. Schwartz
> "Douglas" == Douglas Wilson <[EMAIL PROTECTED]> writes: Douglas> That gives me a 'Variable "$counter" may be unavailable at ./tst2 line 17.' Douglas> warning. And its sort of obfuscated (to me, anyway). I'd probably do it this Douglas> way: Douglas> #!/usr/local/bin/perl -w Douglas> use s

RE: getting rid of nested sub lexical problem

2000-08-16 Thread Douglas Wilson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 16, 2000 2:17 AM > To: [EMAIL PROTECTED] > Subject: getting rid of nested sub lexical problem > > Below is a processed version of the increment_counter example from the > guide that works

Problems installing Apache::Scoreboard

2000-08-16 Thread Robert Jenks
Title: Problems installing Apache::Scoreboard I am running RH6.0 / Perl 5.005_03 / mod_perl 1.22 and I'm getting the following errors when trying to install Apache::Scoreboard.  Any ideas? # make mkdir blib mkdir blib/lib mkdir blib/lib/Apache mkdir blib/arch mkdir blib/arch/auto mkdir blib/a

Solaris 2.6, mod_perl 1.24, DBD::Oracle 1.06, Oracle 8.1.6

2000-08-16 Thread Larry Mulcahy
The 'surgery on Oracle' technique described in the README.java file in the DBD::Oracle 1.06 distribution fixed all the problems I was having with DBD::Oracle and mod_perl. Whew. -- Larry Mulcahy [EMAIL PROTECTED] PGP public key at: http://p

Re: Session manager(s)-how to set an outbound session ?

2000-08-16 Thread Ken Williams
Bill Moseley wrote: > FWIW -- I'm using a modified version of Ken Williams' Apache::AuthCookie to > handle session control via cookies or munged URLs. I originally wanted to > use his custom login script instead of the pop-up browser login, but I had > clients that don't have cookies enabled. So

Re: SSI and PerlHandler

2000-08-16 Thread Simon_Wilcox
You might use Apache::Filter and chain your output into Apache::SSI. Works for me but ymmv :-) Simon Wilcox Williams Lea Group. >From "Jim Sproull" <[EMAIL PROTECTED]> Date 14:34:15 16 August 2000 To: [EMAIL PROTECTED] cc:(bcc: Simon Wilcox/B

SSI and PerlHandler

2000-08-16 Thread Jim Sproull
Hello All, I currently have a PerlHandler that simply appends some data to all outgoing text/html files. In my .htaccess file: SetHandler perl-script PerlHandler AddHtml Then in the AddHtml.pm file: ... ## Print the page asis my $rqh = Apache::File->new

RE: Printing under MOD_Perl

2000-08-16 Thread Bogomolnyi Constantin
Did you think about http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subproce ss I mean that if you detach an subproc witch deals with printings your main mod_perl server doesn't wait for the print Job complete . Best Constantin > - Original Message - > From: <

RE: $r->get_handlers bug/oversight?

2000-08-16 Thread Geoffrey Young
> -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 11:22 PM > To: Geoffrey Young > Cc: '[EMAIL PROTECTED]' > Subject: Re: $r->get_handlers bug/oversight? > > > On Tue, 25 Apr 2000, Geoffrey Young wrote: > > > Hi all... > > > >

Re: Redirects issues...

2000-08-16 Thread Roger Espel Llima
Trevor Phillips <[EMAIL PROTECTED]> wrote: > I'm revisiting a routine I have which in the ContentHandler phase, > redirects to another URI (status 302). While redirecting, I'd like to > also set a cookie. > > I set the URI header as well, due to habit. Didn't there used to be a browser > which req

Printing under MOD_Perl

2000-08-16 Thread mfs
Hi all, I try to print to a local printer from an CGI script running under mod_perl. Using the open pipe function does not work. How can I manage ? (systemcall?). tnx in advance, mfs

getting rid of nested sub lexical problem

2000-08-16 Thread chris
Due to forgetfulness I was recently bitten by the infamous "my() Scoped Variable in Nested Subroutines" problem using Apache::Registry, and it got me thinking about whether it is fixable. >From the diagnostics: This problem can usually be solved by making the inner subroutine anonymous, using

RE: Question about $sth->finish;

2000-08-16 Thread Vladislav Safronov
Well, summarizing all the answers and assuming using Mysql 1. $sth->finish should be used if (and ONLY if) the the returned data (any SELECT, but not INSERT, UPDATE?) has not been fetched ALL and $sth is going to be overwritten.. 2. $sth (defined as 'my') should not call finish before

Re: RFC: Apache::Reload

2000-08-16 Thread Matt Sergeant
On Tue, 15 Aug 2000, Ask Bjoern Hansen wrote: > On Fri, 11 Aug 2000, Matt Sergeant wrote: > > > sub handler { > > my $r = shift; > > my $do_undef = ref($r) && > > (lc($r->dir_config("UndefOnReload") || '') eq > > 'on'); > > Would be neat to have this as an import pa

Re: crash in modperl-1.24

2000-08-16 Thread Matt Sergeant
On Tue, 15 Aug 2000, Mark D. Anderson wrote: > (not sure whose email got delayed since i posted this question some time ago -- > thanks for the tip though on how to get more meaningful modperl crash info). > > The problem was the symbol conflict between XML::Parser and apache when built > with e