Re: How to use, after install...

2004-07-30 Thread Tom Schindl
Hi, the best thing would be: 1. Read docs at perl.apache.org 2. Get one of the various good books which are out there: e.g. http://www.amazon.de/exec/obidos/ASIN/0596002270/qid=1091174088/ref=sr_8_xs_ap_i1_xgl/028-6908240-1456549 ModPerl List wrote: How do I actually use mod_perl once I install i

ANNOUNCE: Compress::LeadingBlankSpaces 0.05

2004-07-30 Thread Slava Bizayeyv
This is a bug-fix version. The bug can affect Apache::Dynagzip when 'light compression' is configured 'on'. The problem of the very last incoming character that is not a 'new-string' was brought to my attention by Chris Clandingboel. Fixed now. Thanks Chris! Upgrade is recommended for all users o

Re: request appears to be processed twice with PDF::Create

2004-07-30 Thread Dermot Paikkos
Hi Tom, I think I see what your saying. What if you ignored the first and worked on the 2nd? Same problem I guess if you hit the first child. I haven't tried to determine if there are two processes as a result of hitting the form but I know from the logs that the module starts cycling through the

Re: HTTP headers - what is wrong

2004-07-30 Thread Chris Faust
Thanks Fred, that did the trick... -Chris - Original Message - From: <[EMAIL PROTECTED]> To: "Chris Faust" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 27, 2004 12:02 PM Subject: Re: HTTP headers - what is wrong > > Which works great, the problem is right before I pri

Re: HTTP headers - what is wrong

2004-07-30 Thread Chris Faust
What would you suggest for a situation where a user is entering in their credit card information, using their back button and submitting again and then complaining about a double charge? I've dealt with the submit button and that took care of a lot of users that double click the thing or simply cli

Re: HTTP headers - what is wrong

2004-07-30 Thread Jean-Michel Hiver
Chris Faust wrote: What would you suggest for a situation where a user is entering in their credit card information, using their back button and submitting again and then complaining about a double charge? I would suggest that you need to create some kind of transaction ticket. For example, (times

Re: HTTP headers - what is wrong

2004-07-30 Thread William McKee
Chris, Randall even has a column about this issue[1] from a couple years ago. HTH, William [1] http://www.stonehenge.com/merlyn/WebTechniques/col64.html -- Knowmad Services Inc. http://www.knowmad.com -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/ma

Re: Problems downloading modperl

2004-07-30 Thread Charlene
I figured it out.   I removed the last .tar off of mod_perl-2.0-current.tar.gz.tar And Winzip could handle it. Charlene Randy Kobes wrote: On Wed, 28 Jul 2004, Charlene Wroblewski wrote: I don't think the right file is there. Winzip has an error processing this downloaded file

ModPerl::Registry: Software caused connection abort

2004-07-30 Thread Dan Wilga
Configuration: Red Hat Enterprise Linux AS release 3 (Taroon Update 2) Kernel 2.4.21-15.0.2.ELsmp mod_perl 1.99_14 (compiled from source; "make test" reports all tests successful) OpenSSL 0.9.7a Feb 19 2003 Apache 2.0.50 (compiled from source) ./configure --prefix=/usr --localstatedir=/etc/httpd

Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
Hi modperls, Apache/1.3.26 (Unix) mod_perl/1.27 I have started getting odd results from requests that come from forms with multiple options. If I pass the following uri all is well: http://server.com/junk?one=1&two=2&three=3 But this doesn't http://server.com/junk?no=1&no=2&no=3 Well to be fa

Re: Accessing form mutiples

2004-07-30 Thread Michael
Dermot Paikkos wrote: Hi modperls, Apache/1.3.26 (Unix) mod_perl/1.27 I have started getting odd results from requests that come from forms with multiple options. If I pass the following uri all is well: http://server.com/junk?one=1&two=2&three=3 But this doesn't http://server.com/junk?no=1&no=2

Re: Accessing form mutiples

2004-07-30 Thread Joe Schaefer
"Dermot Paikkos" <[EMAIL PROTECTED]> writes: [...] > foreach my $param ($r->param) { > print STDERR "\$r->$param = ".scalar($r->param($param))."\n"; > # $hash_ref->{$r->param($param)} = 0; Have you tried using a slice there? @{$hash_ref}{$r->param($param)} = (); # valu

Running separate dev/prod modperl environments

2004-07-30 Thread Nathan L. Kugland
Hi all, I'm working on a mason/modperl project that needs separate development and production environments. I only have one machine to work with, and I've realized that using a single httpd process for both of these sites (with my current VirtualHost config) will probably result in some unhealt

Re: Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
Does that explain, if I use the version of junk.pm below, with this uri: http://dev.sciencephoto.co.uk/junk?no=1&no=2&no=3 I get: $r->no = 1 user = 1 user = 2 user = 3 and http://dev.sciencephoto.co.uk/junk?one=1&two=2&three=3 gives: $r->one = 1 $r->two = 2 $r->three = 3 user = 1 user = 2 use

Re: Accessing form mutiples

2004-07-30 Thread Thomas Schindl
[...] As already stated by Joe you have two possibilities: 1. Use Hashslice-Sytanx (very short hand) my %hash = (); foreach( $r->param() ) { @hash{$r->param($_)} = ( 1 ); } 2. For a more verbose version you should use a inner foreach: my %hash = (); foreach( $r->param() ) { foreach( $r-

Re: Accessing form mutiples

2004-07-30 Thread Jeremy Brooks
I'm a modperl newbie but a pretty good Perl programmer. My first thought is that you can't have multiple hash keys with the same name. That's why you can only see one key called 'on'. Maybe the 'on' value that you are seeing is an array or array reference? I hope I'm not way off base here but thi

Re: Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
Hi, It's late and I shouldn't even be in the office but thanx for the replies. The point that you can't have hash keys of the same name makes a huge amount of sense and is something is mentioned about it in the cookbook. I'll try the slice on Monday, as two replies are stating that as the sol

mod_perl2, HEAD request and Content-Length

2004-07-30 Thread Boris Zentner
Hi, I have a handler, that serve dynamic pages or static ones. If the handler gets a HEAD request, it answers with ... $apr->headers_out->{'Content-Length'} = 12345; $apr->content_type($media_type) unless $apr->main; if ( $apr->header_only ) { return DONE; } ... This works, but

Software caused connection abort

2004-07-30 Thread Casey Songer
Hello all, I'm running mod_perl 1.99_13 with apache 2.0.49. I'm also running HTML::Mason. Not sure if this is a Mason error or just a mod_perl thing, but I keep getting these errors in my error log: [Fri Jul 30 16:37:12 2004] [error] [client x.x.x.x] 103:Software caused connection abort at /

Re: mod_perl2, HEAD request and Content-Length

2004-07-30 Thread Geoffrey Young
Boris Zentner wrote: > Hi, > > I have a handler, that serve dynamic pages or static ones. If the handler gets > a HEAD request, it answers with > > ... > $apr->headers_out->{'Content-Length'} = 12345; > $apr->content_type($media_type) unless $apr->main; > if ( $apr->header_only ) { >