Re: Database Pooling

2003-01-02 Thread dom
> > Well, it's going to be a pretty strange environment that doesn't have a > database connection in every process. Sure. And beware of connections that are returned to the pool without being rollbacked, too - the app then deadlocks itself because it holds locks in the database and doesn't know

Re: Database Pooling

2003-01-02 Thread dom
> Sounds like you should have some more code in your finally > blocks. :) Well I don't quite like having to do that everywhere, especially in code I did not write. In Perl I only need one of them using some AUTOLOAD trickery :-). -- Dominique QUATRAVAUX Ingénieur dével

Re: sed error in perl Makefile.pl

2003-01-03 Thread dom
> I have to rebuild my perl and go through the Configure > process to tell it to ignore `hostname`, unless you > know a trick for that, too! Well, what about creating a custom shell script named "hostname", turn it executable, and put it somewhere in your PATH ? #!/bin/sh echo "darkstar.frop.org

Off-topic-ness

2003-01-23 Thread dom
> This is a diverse list > with many different levels of Internet experience represented, and one > off-topic post is not a big enough problem to merit banning people. (my 0.02 Euros...) I have to say that beyond the technical competence of people on this list (which is excellent), I'm very

Re: sftp

2003-01-27 Thread dom
> hi everybody > Do someone know how to connect to a distant host with perl (via sftp) and > copy file from the host ? You could just launch the "sftp" command using system(), or better, the IPC::Run module from CPAN that was discussed here some time ago. I would be surprised to hear that there

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread dom
> > The cause of the problem was my perl code calling flush.pl and > flushing STDOUT at a point prior to it printing the response headers. > Under mp2, flushing STDOUT calls mpxs_output_flush in > xs/Apache/RequestIO/Apache__RequestIO.h, which in turn calls > ap_rflush, which triggers creation of

Re: I can see Apache.pm, why can't he?

2002-07-29 Thread dom
> Line 199 checks for Apache.pm and Apache::Status, thus: > > if ($INC('Apache.pm') and Apache->module('Apache::Status')); > > I have both Apache.pm and Apache::Status installed. Yes but Apache::module (which called by "Apache->module('Apache::Status')") is an XS function defined by libperl.so

Re: asynchronous downloads

2002-10-03 Thread dom
> How do I send a file asynchronously? > > The classic example is download sites. You click on the file you want and > it generates a thankyou page for your browser and also sends the file. > > So what's the correct way to do this? > Use a refresh META tag on the thank-you page, that points

Re: evil scripts kill the server...

2002-10-16 Thread dom
> >although it never happened to me i have to fight some rumours. Is > >it true that you can kill the whole server, not just the script > >if you do something wrong with mod_perl? (I doubt it) > > It depends on what "wrong thing" you do. In fact the worse you can do is to kill one of the mod_p

Re: Accessing configuration information

2002-11-21 Thread dom
> Hi All > > I know I can use $r->dir_config() to access parameter values > set in the config file with PerlSetVar, but is it possible to > access the value of generic Apache configuration directives? This is described in the [EagleBook] (worth your money, IMHO), and this particular chapter is av

Re: Mason vs embperl

2001-12-20 Thread dom
> So I installed and compared. I preferred the syntax of Mason, the > flexible way to build components, the caching ... it have to be > said here that I choose Mason ... I agree, the caching is very good and one gets up and running in no time with Mason. However, I find it imposes too much of a

Re: Dynamically serving an .htaccess file with mod_perl

2002-01-29 Thread dom
> > Does anyone know of a way that I can server the contents of an > > .htaccess file dynamically? > Make the .htacess file in question a FIFO, with a script on the > backend that Does The Right Thing. Whoops, you would loose big when two concurrent Apache processes attempt to access the .htacce

Re: [OT-ish] Session refresh philosophy

2002-02-20 Thread dom
> The usual objection I've heard to using form fields is the security > risk of people changing hidden fields in ways unforseen before submitting > the form back, or of other people finding confidential data hidden in form > fields if the user walks away and leaves their browser open, or the web >

Re: [OT-ish] Session refresh philosophy

2002-02-21 Thread dom
> > You've addressed the issue of someone submitting a form with altered fields > to attack the server, and pointed out some more advantages, but I don't > think you've addressed the issue of protecting the "hidden" cleartext data > from others on the client side. True. But to tackle these conce

Re: how to pass data in internal redirects?

2002-02-26 Thread dom
> I suppose that controllers would use internal redirects to call the > views, is there a way to pass Perl data this way? For the project I work on (a WWW-enabled PKI), we simply use CGI-encoded URLs. This way, we can do the controllers in Perl and the views in PHP, which is great for security