Re: Mason vs embperl

2001-12-19 Thread Chris Strom
Lihn, Horng-Twu [EMAIL PROTECTED] writes: I have a library of perl routine that I call in cgi-bin environment where I usually require. I could not find any way to require it and use it in Embperl. I can not find any doc describing how this is done. (I can require it in the Mason handler.pl)

Apache::AuthCookieLDAP secret key [was Problem with Apache-request]

2001-10-15 Thread Chris Strom
httpd.conf: PerlSetVar SALDAP_SecretKeyFile .../apache/foobar.com.key See if it exists and verify that the UID under which the web server is running has permission to access that file. Apologize for my ignorance. Randy Chris Strom wrote: Are you running login.pl under Apache::Registry

Re: Problem with Apache-request

2001-10-11 Thread Chris Strom
Are you running login.pl under Apache::Registry? If not, something like the following should work: Alias /perl/ /home/httpd/perl/ PerlModule Apache::Registry Location /perl SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI /Location Then put your login.pl

Re: Using mod_perl to modify referer...

2001-07-19 Thread Chris Strom
Brian [EMAIL PROTECTED] writes: I have a unique situation in which I need to change the http_referer. What I've done is written a quick script that looks like this: [snip] Now, the problem is this: It works perfectly as long as the client remains on our server. But, if they go to another

Re: comparison of templating methods?

2001-06-07 Thread Chris Strom
will trillich [EMAIL PROTECTED] writes: AxKit HTML::Embperl The two that I've had the most experience with are AxKit and HTML::Embperl, and I'd recommend them both. They are both well maintained (both released updates in this week) and the mailing lists for both are very

Re: Getting the wrong URL

2001-06-04 Thread Chris Strom
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling

Re: Authorization question and subdirectories

2001-05-16 Thread Chris Strom
Mike Cameron [EMAIL PROTECTED] writes: Is it possible to have the same PerlAuthzHandler use different require's on a subdirectory once a user has been authorized for a parent directory? Here is what i would like to be acle to do: Location / SetHandler perl-script AuthType MyAuth

Re: Authorization question and subdirectories

2001-05-16 Thread Chris Strom
sterling [EMAIL PROTECTED] writes: On 16 May 2001, Chris Strom wrote: Mike Cameron [EMAIL PROTECTED] writes: Is it possible to have the same PerlAuthzHandler use different require's on a subdirectory once a user has been authorized for a parent directory? Here is what i

Re: [OT] ideas on design of a diff monitor

2001-05-11 Thread Chris Strom
Nick Tonkin [EMAIL PROTECTED] writes: Hi all, I'm working on a tool that should compare two versions of a file (usually, a web page) and report the _number_ of changes from one to the other. I've played with Algorithm::Diff as well as standard diff and haven't found a really sane way to

Re: capturing subrequest output (have things changed)

2001-05-09 Thread Chris Strom
Anand Raman [EMAIL PROTECTED] writes: hi guys I just started off using modperl so excuse me if this has been answered. Is there a way to capture output from a subrequest.. rather than allowing the subrequest to directly output the response to the client browser. I need to be able to

RE: PerlAccessHandler via set_handlers()?

2001-05-03 Thread Chris Strom
-Original Message- From: will trillich [mailto:[EMAIL PROTECTED]] thanks one and all for the pointers on cookies. i probably grok 738% more than i did, but i have a feeling it's still only 13% of the pie. or in this case, cookie... so how's this PerlAccessHandler, for twisted

RE: PerlAccessHandler -- struggling and drowning

2001-05-01 Thread Chris Strom
headmeta http-equiv=Refresh content=2; http://www.no-way-in-hell-bubba.com/login/; should be: meta http-equiv=Refresh content=2; URL=http://www.no-way-in-hell-bubba.com/login/;

RE: Cookies in PerlAccessHandlers

2001-04-24 Thread Chris Strom
You may have a typo in the code provided. Also, you should probably start using mod_perl methods rather than perl built-in functions. In a PerlAccessHandler I have code similar to the following: sub handler { my $r = shift; my ($cgi, $cookie); use CGI; $cgi = new CGI;

RE: Help: Can't use string (Exchange::Account::My) as a HASH ref while strict refs in use trying to use instance variables in my handler

2001-02-07 Thread Chris Strom
Anyway, what you should do is create a constructor: sub new { [snip] You mean like this code segment that I included in my original post just below the handler code :) sub init { [snip] Ah yes, but you called your's "init", which is quite misleading to those of us who tend not to

RE: Help: Can't use string (Exchange::Account::My) as a HASH ref while strict refs in use trying to use instance variables in my handler

2001-02-06 Thread Chris Strom
Subject: Help: Can't use string ("Exchange::Account::My") as a HASH ref while "strict refs" in use trying to use instance variables in my handler [snip] sub handler ($$) { my ($self, $q) = @_; my $r= Apache::Request-new($q); $self-child_init unless

RE: PerlAccessHandler Question...

2001-01-09 Thread Chris Strom
#Location Handlers Location PerlAccessHandler Apache::GateKeeper /Location The Location directive needs to specify a URL to which it applies: Location / Perl*Handlers can go pretty much anywhere, as long as the server administrator hasn't diabled .htaccess files.

RE: Add to default chain of handlers

2001-01-03 Thread Chris Strom
Hi I wonder how would I be able to add a perl handler in front of all the default handlers that are being used by apache. Try the PerlInitHandler directive. Location /members PerlAuthHandler Moo::Auth PerlAuthzHandler Moo::MemberAuth PerlAuthzHandler Moo::MembershipType PerlSetvar

RE: Transfering Headers... w/ miltiple 'Set_Cookie'

2000-12-22 Thread Chris Strom
You might try: $headers-scan(sub { $r-headers_out-add(@_); print STDERR join("=", @_), "\n" }); The STDERR will output the seen headers to your logs. the problem is that there are many Set-Cookie instructions in $headers but mod_perl seems to use a tied hash to

RE: Unset PerlAuthenHandler (I wish)

2000-12-19 Thread Chris Strom
Removes all PerlAuthenHandlers: LocationMatch /websites/foo.net/htdocs/passwd_forgoten/ PerlInitHandler "sub {$_[0]-set_handlers(PerlAuthenHandler=undef);}" /LocationMatch Creates a single PerlAuthenHandler whose sole function is to return OK. I think this should be: ...

RE: Use of .htaccess files

2000-11-20 Thread Chris Strom
You will need to use StatINC. mod_perl does not re-read modules that it has already loaded. -Original Message- From: Kevin Beckford [mailto:[EMAIL PROTECTED]] Sent: Friday, November 17, 2000 11:06 PM To: [EMAIL PROTECTED] Subject: Use of .htaccess files Hello all, I'm a

RE: ASP Editor

2000-11-10 Thread Chris Strom
Emacs, of course! Use it in conjunction with MMM Mode for Emacs (http://mmm-mode.sourceforge.net/). Get the latest version of Emacs for windows from http://www.gnu.org/software/emacs/windows/ntemacs.html or http://www.xemacs.org (my preference is for the former). -Original

RE: PerlRun StatInc perl5_00405

2000-11-09 Thread Chris Strom
Creating a nearly empty warnings.pm works, but I had to define the package namespace and create the unimport method as an empty subroutine like: ## package warnings; sub unimport {} 1; ## If this is done, then you need to change the following lines in

PerlRun StatInc perl5_00405

2000-11-08 Thread Chris Strom
I'm having trouble using PerlRun with the StatInc module. The symptom is several error log file entries of the form: [Wed Nov 8 11:12:20 2000] PerlInitHandler subroutine `Apache::StatINC::handler' : Apache::StatINC: Can't locate The offending item in %INC appears to be the 'warnings.pm' entry

RE: PerlRun StatInc perl5_00405

2000-11-08 Thread Chris Strom
NC_Debug 1 PerlWarn On PerlTaintCheck On It's not the prettiest thing, but it does what's needed. -Original Message- From: G.W. Haywood [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 08, 2000 3:00 PM To: Chris Strom Cc: [EMAIL PROTECTED] Subject: Re: PerlRun StatInc perl5_