Re: Reading post-data

2007-06-19 Thread Reif Peter
> Reif Peter wrote: > > Unfortunately you cannot tell $r->read to read just all of > the data, you > > must provide a length. > > > > How do I solve this problems. > > $r->read will return 0 when no more data is available. I have > been using > the following simple code with success: > > my $

Re: Weird response from both CGI and modperl handlers

2007-06-19 Thread Geoffrey Young
Cyril SCETBON wrote: > Hi people, > > I've got some problem with both cgi and modperl. > when I post something to /perl/test.pl which just print header and a > string I got some strange numbers. The post is done with a php script. > > test.pl : > > use strict; > use CGI qw/:standard/; > > pri

Weird response from both CGI and modperl handlers

2007-06-19 Thread Cyril SCETBON
Hi people, I've got some problem with both cgi and modperl. when I post something to /perl/test.pl which just print header and a string I got some strange numbers. The post is done with a php script. test.pl : use strict; use CGI qw/:standard/; print header; print("\ncoucou\n"); and below i

Re: Howto develop with modperl 2 ? (Restart Apache all the time ?)

2007-06-19 Thread Jonathan Vanasco
On Jun 19, 2007, at 10:59 AM, Lionel MARTIN wrote: You can put that in your Apache conf file: PerlModule Apache2::Reload PerlInitHandler Apache2::Reload This way, every time you alter one of your Apache modules, it gets reloaded. This incurs a small performance hit (the server has to fsta

mod_perl is already running, too late for PerlSwitches

2007-06-19 Thread jean jayet
Hello all, during setup of mod_perl 2 with Apache 2 and perl 5.8.4 on a solaris 10 make test : Syntax error on line 47 of /tmp/mod_perl-2.0.3/t/conf/extra.conf: mod_perl is already running, too late for PerlSwitches does anybody have an idea what is the pb ? rgds, Jean /tmp/mod_perl-2.0.3/

Re: write apache log?

2007-06-19 Thread Perrin Harkins
On 6/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: What's the standard way under modperl to write logs to apache's log files including access_log and error_log? http://perl.apache.org/docs/2.0/api/Apache2/Log.html There are other things you can do too, like making your own log handler, o

Re: Insecure directory in $ENV{PATH}

2007-06-19 Thread jean jayet
this is due to perl security (perlsec) For "Insecure PATH" messages, it is required to set $ENV{'PATH}' to a known value, and each directory in the path must be non-writable by the world rgds, Jean jean jayet wrote On 06/19/07 04:29 PM,: > Hello all, > > > during setup of mod_perl 2 with Apac

Re: Howto develop with modperl 2 ? (Restart Apache all the time ?)

2007-06-19 Thread Lionel MARTIN
Hi, You can put that in your Apache conf file: PerlModule Apache2::Reload PerlInitHandler Apache2::Reload This way, every time you alter one of your Apache modules, it gets reloaded. This incurs a small performance hit (the server has to fstat the related files every time a request is run, to

Insecure directory in $ENV{PATH}

2007-06-19 Thread jean jayet
Hello all, during setup of mod_perl 2 with Apache 2 and perl 5.8.4 on a solaris 10 make test : "Insecure directory in $ENV{PATH} while running with -T switch at /tmp/mod_perl-2.0.3/Apache-Test/lib/Apache/TestConfig.pm" does anybody have an idea what is the pb ? rgds, Jean for info below

Howto develop with modperl 2 ? (Restart Apache all the time ?)

2007-06-19 Thread Jens Helweg
Hi everyone, I have just started using modperl 2 on Windows. Apache is 2.2.4. Perl ist ActiveState Perl 5.8.8. I have setup my first perl module an included everything into the apache configuration and up to now everything works fine. But one thing that I really wonder is: I need to restart

Re: opinions of mod_perl users on MIME email sending

2007-06-19 Thread Clinton Gormley
On Mon, 2007-06-18 at 16:51 +0100, John ORourke wrote: > Hi folks, > > I'm wondering what modules people use for sending email? At the moment > I'm using MIME::Lite but I'm doing several things myself which a bigger > module might do for me: > > - header encoding - I can't find any modules wh

write apache log?

2007-06-19 Thread pennyyh
What's the standard way under modperl to write logs to apache's log files including access_log and error_log? I'm currently running my own handlers under PerlHandler directives.Thanks guys. Check Out the new free AIM(R) Mai

Re: SQLite and multiple process behavior

2007-06-19 Thread Jeff
Jeff, Apologies - missed the start of this thread... but reading between the lines, you are seeing stale data from some DB handles, and updated data elsewhere? I get the impression that you are replacing / updating the underlying db files from source control? >> It's almost like the OS is ke