Re: 2.02 make fails: cannot find -lperl

2006-02-21 Thread Tom Setka
Oh well. I've tried all the suggestions and the problem simply won't be resolved. It's obvious that although Knoppix is technically Linux, the capability to install software on a system is crippled. In fact, I can't even create a hard or soft link. I tried to install Perl 5.8.8 on the PC and it

Re: what is the best way to do ...

2006-02-21 Thread Torsten Foertsch
On Tuesday 21 February 2006 21:42, Geoffrey Young wrote: >   >      = 2.2.0> >        AllowOverride AuthConfig Options=Indexes,FollowSymLinks >       >       >        Options None >        Options Indexes FollowSymLinks >       >   >   >      # no mod_version so we can't be 2.2 or greater... >  

RE: Apache::Request breaks cgi.pm

2006-02-21 Thread Gerald Richter
> > Sorry, forgot to list that, yes using mp1.x and apache 1.3 > with embperl version 1.3.4. We have the latest cgi.pm ( > version 3.16 ). > Embperl 1.3.4 is really very old, this might not work with an up to date Apache::Request and/or CGI.pm, but I don't know. I suggest upgrading to Embperl

Re: what is the best way to do ...

2006-02-21 Thread Geoffrey Young
> This test works well with the AllowOverride line in the config for Apache 2.2 > and without it for Apache 2.0. For 2.0 the Options=... prevents httpd from > starting up. ok > > The question is, where do I apply your -defines trick, since mod_perl itself > has no t/TEST.PL (TEST.PL are only

Re: what is the best way to do ...

2006-02-21 Thread Torsten Foertsch
On Tuesday 21 February 2006 20:57, Geoffrey Young wrote: > well, I'm not sure I follow you, then.  the only real reason for wanting > what you asked for in the first place was to prevent httpd from crashing on > startup because of configurations options it doesn't understand.  if you > can start ht

Re: Apache::Request breaks cgi.pm

2006-02-21 Thread Blayne Bayer
We actually tried upgrading that this morning with no success we are now on cgi.pm version 3.16. thanks, blayne Gerald Richter wrote: Hello, we have just installed Apache::Request ( libapreq ) and suddenly all of our file uploads are breaking with a ' Setup of CGI.pm failed: Malformed mu

Re: Apache::Request breaks cgi.pm

2006-02-21 Thread Blayne Bayer
Sorry, forgot to list that, yes using mp1.x and apache 1.3 with embperl version 1.3.4. We have the latest cgi.pm ( version 3.16 ). thanks, Blayne Tom Schindl wrote: I assume you are using mp1.x and apache1.3? Tom Blayne Bayer wrote: Hello, we have just installed Apache::Request ( libapr

Re: Apache::Request breaks cgi.pm

2006-02-21 Thread Tom Schindl
I assume you are using mp1.x and apache1.3? Tom Blayne Bayer wrote: > Hello, > > we have just installed Apache::Request ( libapreq ) and suddenly all of > our file uploads are breaking with a ' Setup of CGI.pm failed: Malformed > multipart POST' error. We use embperl and everything was working f

RE: Apache::Request breaks cgi.pm

2006-02-21 Thread Gerald Richter
Hello, > > we have just installed Apache::Request ( libapreq ) and > suddenly all of our file uploads are breaking with a ' Setup > of CGI.pm failed: Malformed multipart POST' error. We use > embperl and everything was working fine. > Have been searching for a solution but cannot find any. Doe

Re: what is the best way to do ...

2006-02-21 Thread Geoffrey Young
> For Apache 2.0.x these functions return 255, the default value in 2.2. > Setting > Apache2::CmdParms::override_opts dies for 2.0 and the override_opts parameter > to add_config is simply ignored in 2.0. > > When adding tests I stumbled. Where do I have to add the -defines trick in > this ca

Re: what is the best way to do ...

2006-02-21 Thread Torsten Foertsch
On Tuesday 21 February 2006 19:17, Geoffrey Young wrote: > > I need something like this: > > > > __END__ > > = 2.2.0> > > AllowOverride AuthConfig Options=Indexes,FollowSymLinks > > > > > > Unfortunately, IfVersion is valid only from 2.0.56 on. Is there a > > workaround in mod_perl or AT? > > I un

Re: any way to stop REDIRECT_ env prefix?

2006-02-21 Thread Tyler MacDonald
Tyler MacDonald <[EMAIL PROTECTED]> wrote: > I'm writing a handler whose goal is to set an environment variable, then > issue an internal redirect to another page; > > $r->subprocess_env("FOO", "bar"); > $r->internal_redirect("/somewhere/else"); > > The problem is that when the redirected pag

any way to stop REDIRECT_ env prefix?

2006-02-21 Thread Tyler MacDonald
I'm writing a handler whose goal is to set an environment variable, then issue an internal redirect to another page; $r->subprocess_env("FOO", "bar"); $r->internal_redirect("/somewhere/else"); The problem is that when the redirected page loads, my "FOO" environment variable has become "REDIRE

Apache::Request breaks cgi.pm

2006-02-21 Thread Blayne Bayer
Hello, we have just installed Apache::Request ( libapreq ) and suddenly all of our file uploads are breaking with a ' Setup of CGI.pm failed: Malformed multipart POST' error. We use embperl and everything was working fine. Have been searching for a solution but cannot find any. Does anybody k

Re: what is the best way to do ...

2006-02-21 Thread Geoffrey Young
Torsten Foertsch wrote: > Hi, > > I want to test a module that uses an Apache 2.2 feature. The module uses > response tests where the httpd configuration is written directly in the > test.pm. > > I need something like this: > > __END__ > = 2.2.0> > AllowOverride AuthConfig Options=Indexes,Fo

Re: file upload without apache::request

2006-02-21 Thread Clinton Gormley
>my %params = $r->method eq 'POST' ? $r->content : $r->args; Why not parse both and merge them? But I would just use Apache::Request or CGI - they work, the authors have thought of things that we wouldn't, etc... It should be easy to replace the part of your code which reads in the get/post

Re: file upload without apache::request

2006-02-21 Thread Tom Schindl
use CGI ;-) pure perl Alan Bailward wrote: > Hey all. I have an old system I inherited which is about 4000 lines > of "pure" mod_perl under apache 1.3, not using apache::request at all. > I've been asked to "just" add file upload capabilities. > > Looking at it, I thought I could change the co

file upload without apache::request

2006-02-21 Thread Alan Bailward
Hey all. I have an old system I inherited which is about 4000 lines of "pure" mod_perl under apache 1.3, not using apache::request at all. I've been asked to "just" add file upload capabilities. Looking at it, I thought I could change the code to add enctype="multipart/form-data" to the tag and

what is the best way to do ...

2006-02-21 Thread Torsten Foertsch
Hi, I want to test a module that uses an Apache 2.2 feature. The module uses response tests where the httpd configuration is written directly in the test.pm. I need something like this: __END__ = 2.2.0> AllowOverride AuthConfig Options=Indexes,FollowSymLinks Unfortunately, IfVersion is valid

Re: Can't print to selected filehandle?

2006-02-21 Thread Scott Gifford
Frank Wiles <[EMAIL PROTECTED]> writes: [...] > First off I would convert it to using IO::File or somehow get > rid of using globs. Such as my $fh = select; But this won't > solve your error, just makes the code easier to work with. I actually tried that, but couldn't get it to work:

Re: Can't print to selected filehandle?

2006-02-21 Thread Frank Wiles
On Tue, 21 Feb 2006 11:22:22 -0600 Chris Werner <[EMAIL PROTECTED]> wrote: > Frank Wiles Wrote: > > > > http://perl.apache.org/docs/1.0guideporting.html#STDIN__STDOUT_and_STDERR_st > reams > > Dead link? > Grrr... sometimes I hate my mail client. Let's try the shortened version. :) ht

RE: Can't print to selected filehandle?

2006-02-21 Thread Chris Werner
Title: RE: Can't print to selected filehandle? Frank Wiles Wrote: > http://perl.apache.org/docs/1.0guideporting.html#STDIN__STDOUT_and_STDERR_streams Dead link?

Re: Can't print to selected filehandle?

2006-02-21 Thread Frank Wiles
On Tue, 21 Feb 2006 11:58:37 -0500 Scott Gifford <[EMAIL PROTECTED]> wrote: > Any idea why this works from the command-line, but not from within > mod_perl? > > #!/usr/bin/perl -Tw > > use strict; > > print "Content-type: text/plain\n\n"; > local *FH = select; > pr

Can't print to selected filehandle?

2006-02-21 Thread Scott Gifford
Any idea why this works from the command-line, but not from within mod_perl? #!/usr/bin/perl -Tw use strict; print "Content-type: text/plain\n\n"; local *FH = select; print "FH: ",*FH,"\n"; print FH "Printing to FH\n"; p(\*FH,"Printing to FH via p().\n");

Re: mod_perl 2.0 custom directive clarification

2006-02-21 Thread Geoffrey Young
Dag-Erling Smørgrav wrote: > Frank Wiles <[EMAIL PROTECTED]> writes: > >>[EMAIL PROTECTED] (Dag-Erling Smørgrav) wrote: >> >>>To quote a slightly longer excerpt: >>> >>>| This object can be later retrieved at request time via: >>>| >>>| my $dir_cfg = $self->get_config($s, $r->per_dir_config); >

Re: mod_perl 2.0 custom directive clarification

2006-02-21 Thread Dag-Erling Smørgrav
Frank Wiles <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Dag-Erling Smørgrav) wrote: > > To quote a slightly longer excerpt: > > > > | This object can be later retrieved at request time via: > > | > > | my $dir_cfg = $self->get_config($s, $r->per_dir_config); > > > > which is clearly incorrect