Re: PerlHandler serving / ?

2004-10-11 Thread Arne Skjaerholt
Actually, the error was due to my own incompetence (I found the error after having a sleep). I thought I had sent a reply to the list saying that, but it turns out I sent it to myself (dang webmail interface *grumble*). Sorry, bout that. Arne :wq -- Report problems: http://perl.apache.org/bugs/

PerlHandler serving / ?

2004-10-06 Thread Arne Skjaerholt
x27;t call method "document_root" on an undefined value). Is this normal behavior, and if so is there a work around/what am I doing wrong? Thank you in advance, Arne Skjaerholt :wq -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Moving STDOUT to a new handle?

2004-11-08 Thread Arne Skjaerholt
Hello everyone, I am currently workning on writing a CMS system, and as such I'd like to prevent user modules from outputting data directly instead of using the method supplied by the system. The way I would like to this is opening a new filehandle in the mian module (lexically scoped so noone e

SV: Moving STDOUT to a new handle?

2004-11-08 Thread Arne Skjaerholt
> This might be a lame response, but I would first look at CGI::Application > and see how they go about doing this. It's a good idea, but having looked at the code on CPAN it seems that CGI::Application doesn't do anything with STDOUT, it only states (repeatedly) that at no point should anyone

SV: SV: Moving STDOUT to a new handle?

2004-11-08 Thread Arne Skjaerholt
> From: Rob Kinyon [EMAIL PROTECTED] > FYI: C::A has a plugin that will make it work (mostly) seamlessly with > mod_perl called CGI::Application::Apache. Hmm. I can't find CGI::Application::Apache on CPAN, only CGI::Application::Plugin::Apache, which, unfortunately for me, doesn't do any STDOUT

SV: mod_perl marketing

2004-11-30 Thread Arne Skjaerholt
A possible application that can be used for benchmarking purposes is the source for ARS (Account Registration System is the accepted full version IIRC) used on ars.userfriendly.org. It is production source used on a heavily loaded site, and according to the author and maintainer of the site it i

[QUESTION] Overloading/overriding print() when subclassing Apache

2005-05-14 Thread Arne Skjaerholt
Hello all, I'm currently working on a project where I've decided to subclass Apache, and one of the methods I've decided to overload is the print method (so that my main module decides when data actually gets printed, not user modules). Now, I'd like to also override the built-in perl print (like A

Re: [QUESTION] Overloading/overriding print() when subclassing Apache

2005-05-17 Thread Arne Skjaerholt
> You don't say which mod_perl version you are using, Arne. D'oh! I really should've remembered to add that info. So basically Apache does everything I want on it's own. How clever and, well, obvious. Thanks for bothering with what I honestly should've figured out on my own. Arne :wq

Re: [QUESTION] Overloading/overriding print() when subclassing Apache

2005-05-17 Thread Arne Skjaerholt
Ok, sorry for the previous two (rather horrible) mails it's getting to be the time of night where (really bad) good ideas abound, so I'll just leave this information before going to bed: mod_perl-1.27 according to gentoo portage, mod_perl 1.29 according to my Apache server string. perl-5.8.5 Arne

Re: [MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Arne Skjaerholt
According to the documentation for Apache (mp1 admittedly, but I don't think this has changed in apache-2): "Apache provides a sub-request mechanism to lookup a uri or filename, performing all access checks, etc., without actually running the response phase of the given request." So that's probably

[MP2] Problems with custom config directives

2005-08-06 Thread Arne Skjaerholt
Hello all, I'm running mod_perl-2.0.1 on apache-2.0.54 and OS X 10.4. Trying to get a custom apache config directive to work I run into what appears to be a rather odd problem. It looks like the subroutine handling the directive is passed a different object from the one being passed to SERVER_CREAT

Re: [MP2] having trouble obtaining $r

2005-08-10 Thread Arne Skjaerholt
Have you tried to put use Apache2::RequestReq; along with the other use statements? I ran into the same problem, except that I wanted Apache2::ServerUtil->server, and that was fixed by including Apache2::ServerRec as well as Apache2::ServerUtil. I'm not entirely sure why this is, but it's probably

Apache2::ServerRec->add_config and directives

2005-11-20 Thread Arne Skjaerholt
Hi all, I'm trying to write a system that writes its own config data to httpd.conf using Apache2::ServerRec->add_config from Apache2::ServerUtil, but I'm running into some troubles with directives. The handler is running as a PostConfigHandler (I've also tried OpenLogsHandler), and it works fine

Re: A question for the newbies

2006-02-16 Thread Arne Skjaerholt
I'm not exactly a newbie anymore, but I came to mod_perl by way of Perl scripts for the shell. I'd already written some PHP, but when I learned Perl I saw the error of my ways as it were and realized that PHP really is quite the makeshift language and that developing in Perl was far more comfortabl

Re: Where's M_HEAD?

2006-03-12 Thread Arne Skjaerholt
Hi, All the Apache constants are available in the Apache2::Const module. See perldoc Apache2::Const for details on how to import symbols and so on. Arne :wq