Re: Reading post-data

2007-06-20 Thread Fred Moyer
Reif Peter wrote: Reif Peter wrote: my $postdata = ""; while ($r->read(my $buf, 8192)) { $postdata .= $buf; } You should ofcourse select a read-buffer size that will best suite your setup. I do not know what would be the most optimal setting here. Yes, this code works and I am using it, too

Re: SQLite and multiple process behavior

2007-06-20 Thread Jeff Nokes
I figured it was something like that, just didn't know the specifics. It all makes sense now. Thanks so much! - Jeff - Original Message From: Jeff <[EMAIL PROTECTED]> To: modperl@perl.apache.org Sent: Tuesday, June 19, 2007 12:51:08 AM Subject: Re: SQLite and multiple process behavior

AW: Reading post-data

2007-06-20 Thread Reif Peter
> > Yes, this code works and I am using it, too. But the > documentation says, > > you can use > >$r->read($buf, $r->headers_in->{'content-length'} > > this statement reads the entire request content in one iteration by > using a read buffer size equal to the content-length of the request. >

Re: Weird response from both CGI and modperl handlers

2007-06-20 Thread Cyril SCETBON
Are we able to disable the chunk transfer ? To send all in one shot ? Geoffrey Young wrote: 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 do

Re: Weird response from both CGI and modperl handlers

2007-06-20 Thread Torsten Foertsch
On Wednesday 20 June 2007 09:45, Cyril SCETBON wrote: > Are we able to disable the chunk transfer ? To send all in one shot ? Add a Content-Length output header and avoid output filters that can change the content length. Or use HTTP/1.0 Torsten pgpytV5g1jL48.pgp Description: PGP signature

Re: Weird response from both CGI and modperl handlers

2007-06-20 Thread Cyril SCETBON
Torsten Foertsch wrote: On Wednesday 20 June 2007 09:45, Cyril SCETBON wrote: Are we able to disable the chunk transfer ? To send all in one shot ? Add a Content-Length output header and avoid output filters that can change the content length. Great. It works :-) when using $r->ser_content

Re: Weird response from both CGI and modperl handlers

2007-06-20 Thread Cyril SCETBON
Torsten Foertsch wrote: On Wednesday 20 June 2007 09:45, Cyril SCETBON wrote: Are we able to disable the chunk transfer ? To send all in one shot ? Add a Content-Length output header and avoid output filters that can change the content length. Great. It works :-) when using $r->ser_content

mod perl version

2007-06-20 Thread khan.sajid
Hi Folks, How will I find which mod perl version I am using, I am using Apache 2.0 so I believe it should be mod perl 2 but is there any way to confirm this Thanks, The information contained in this electronic message and any attachments to this message are intended for the exclusive

Re: mod perl version

2007-06-20 Thread Foo JH
2 ways: 1. If you're using Apache 2, you can only using modperl2. There's no other way. 2. If you turn on ServerSignature in httpd.conf, you will see the signature at the footer of a http error page. [EMAIL PROTECTED] wrote: Hi Folks, How will I find which mod perl version I am using, I am

Re: Access apache log variables, eg %h in PerlLogHandler

2007-06-20 Thread Brad
Hi, thanks for the reply Geoff. I'm actually trying to access the %O bytes sent that logio.c places amongst the other variables within the logging module. Thats something that I can't find elsewhere. Sorry about the %h %i example, i thought %O would over complicate the question :) Thanks, Brad.

Re: mod_perl is already running, too late for PerlSwitches

2007-06-20 Thread Geoffrey Young
jean jayet wrote: > 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

Re: Access apache log variables, eg %h in PerlLogHandler

2007-06-20 Thread Geoffrey Young
Brad wrote: > Hi, thanks for the reply Geoff. I'm actually trying to access the %O > bytes sent that logio.c places amongst the other variables within the > logging module. Thats something that I can't find elsewhere. Sorry > about the %h %i example, i thought %O would over complicate the > qu

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

2007-06-20 Thread Jens Helweg
Thanks Linonel, Jonathan. I have added this to my configuration and now get the error message: failed to resolve handler `Apache2:Reload': I haven't had the chance to look at this any closer. I will do this tomorrow, though. I don't want to overstrain your help - but do you have an idea ? Je

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

2007-06-20 Thread Sean Davis
Jens Helweg wrote: > Thanks Linonel, Jonathan. > I have added this to my configuration and now get the error message: > > failed to resolve handler `Apache2:Reload': > > I haven't had the chance to look at this any closer. I will do this > tomorrow, though. I don't want to overstrain your help -

Apache Subprocess

2007-06-20 Thread khan.sajid
Hi Folks, I was trying in the lines of below code from http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html. # write to/read from the process $command = "/tmp/in_out_err.pl"; ($in_fh, $out_fh, $err_fh) = $r->spawn_proc_prog($command); print $in_fh "hello\n"; $output = read_dat

Re: mod perl version

2007-06-20 Thread _spitFIRE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Foo JH wrote: > 2 ways: > 1. If you're using Apache 2, you can only using modperl2. There's no > other way. > 2. If you turn on ServerSignature in httpd.conf, you will see the > signature at the footer of a http error page. > > [EMAIL PROTECTED] wrote:

Re: apache version check

2007-06-20 Thread _spitFIRE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Vanasco wrote: > `httpd -v` is the correct approach. > > honestly, your two questions make no sense in context of one another. > why don't you tell us what you're trying to accomplish-- in the big > picture. > then just call `httpd -v` from

mod_perl2 best practices interacting with non-apache apps

2007-06-20 Thread Boysenberry Payne
Hello Everyone, I'm running a website building/management system (http:// habitatlife.com/) using an apache2/mod_perl2 via unix platform and want to run some time consuming processes without tying up my apache/mod_perl children. Ideally, I would run these programs then continue on with retur