Re: [modperl 1.27] Problem regarding Perl*Handler and the HTTPrequest line

2002-12-24 Thread Rodney Broom
-HTTP thing going on at the same time from the same port? --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: [modperl 1.27] Problem regarding Perl*Handler and the HTTPrequest line

2002-12-24 Thread Rodney Broom
Tonkin has the idea. Let us know specifically what you want to get done, that will help in the answers. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: memory usage problem!

2002-10-08 Thread Rodney Broom
From: Eric [EMAIL PROTECTED] What about in the case of a big query result? I may have come into this thread a bit late, but can't you just undefine the storage when you're done with it? $data = $sth-fetchall_arrayref; #... do some stuff; $data = undef; --- Rodney Broom President

Re: $r-content

2002-09-25 Thread Rodney Broom
and the coffee isn't strong enough today. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: $r-content

2002-09-25 Thread Rodney Broom
runs out, then still honor their original request (including POST data) without them having to intervene. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: Adding Additional Apache Modules Along With mod_perl

2002-09-20 Thread Rodney Broom
There are problably other good answers available on the list, but I like this method. You will get a sample httpd.conf that has LoadModule and AddModule directives for lots of things. It should make sence from there. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: mod_perl statistics on securityspace.com

2002-09-10 Thread Rodney Broom
From: Ilya Martynov [EMAIL PROTECTED] IM (frankly Safe.pm is a joke). Now this thread has taken my interest. Ilya, would you care to expound on this statement? I'm planning to use Safe in production soon. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: mod_perl statistics on securityspace.com

2002-09-10 Thread Rodney Broom
From: Ilya Martynov [EMAIL PROTECTED] Try to implement something that works with database and files inside of Safe compartment. Ah, yes. I can definately see that. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
installation. No Auth* in the config, no htaccess files, and no other Perl*Handler directives in use. Just on a lark, I tried installing a PerlAuthenHandler in the config, it worked just fine. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
of thought this myself, so I tried $r-dir_config-add('require', 'valid-user') in the access handler. No help. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
doing this and are very happy with the results. This Authen handler is just intended to be an add-on to that. ...which is accessed through $r-requires btw... Ah, you're right. Thank you. Unfortunately, this is read-only. --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

$r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't work

2002-08-31 Thread Rodney Broom
never happens if it's set to run in the 'PerlAuthenHandler'. If I change the push_handlers() to use 'PerlFixupHandler', then Some::handler() gets called and I see it in the error log. What am I doing wrong? I know it has to be me. --- Rodney Broom President, R.Broom Consulting http

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't work

2002-08-31 Thread Rodney Broom
? --- Rodney Broom President, R.Broom Consulting http://www.rbroom.com/

Request object availability in .htaccess

2002-07-17 Thread Rodney Broom
to that server instance work properly. Any thoughts? --- Rodney Broom President, R.Broom Consulting

Re: mod_perl compile problem

2002-02-13 Thread Rodney Broom
From: OCNS Consulting [EMAIL PROTECTED] I'm attempting to make httpd apache-1.3.23 with mod_perl-1.26 and ActiveState Perl 5.6.1 Build 631. Am I hearing you right, you're using an ActiveState Perl on Linux? --- Rodney Broom Programmer: Desert.Net

Re: Running a shell command inside a cgi/perl script

2001-11-30 Thread Rodney Broom
, I'll often use open() instead of system(). --- Rodney Broom

Selectively writing to the access log

2001-10-19 Thread Rodney Broom
another aproach. --- Rodney Broom

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
. --- Rodney Broom

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
to the request object are showing up in the access log. I was able to overload certain fields with 1.19. --- Rodney Broom

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
? --- Rodney Broom

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
/) { $req =~ s/$stuff/$other_stuff/; } $r-subprocess_env('THE_REQUEST', $req); Then I'm using a custom log format like this: LogFormat %h %l %u %t \%{THE_REQUEST}e\ %s %b \%{User-Agent}i\ req_overload --- Rodney Broom

[PING] Sorry, just testing since 26 hours of no activity on this list.

2001-09-23 Thread Rodney Broom
Hi all, I haven't seen anything on this list for the past 26 hours, so I'm just making sure that I'm still seeing new posts. --- Rodney Broom

[PING] Testing new list memborship, please ignore

2001-08-23 Thread Rodney Broom
Thank you. --- Rodney Broom Programmer: Desert.Net

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rodney Broom
::DBI. Remember, from the Apache::DBI docs: Do NOT change anything in your scripts. The usage of this module is absolutely transparent ! --- Rodney Broom Programmer: Desert.Net

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Rodney Broom
From: Perrin Harkins [EMAIL PROTECTED] Apache::DBI doesn't have a problem with transactions. Ah, OK. What about when a shared connection is rolled back in one process, will it effect other running processes with the same handle? --- Rodney Broom Programmer: Desert.Net

OT: Is there a comperable Apache list (besides anounce)?

2001-06-29 Thread Rodney Broom
Hi all, The only list I found on apache.org was [EMAIL PROTECTED]. I see from thearchives that this question was asked in this group a year or two ago, butnobody had a very good answer. ---Rodney BroomProgrammer: Desert.Net

Re: Persitant data accross processes

2001-06-26 Thread Rodney Broom
structure out of shared memory and letting me have a copy of it. Again, thanks for all of the replies. It seems as though I never get replies to my questions. ;-P --- Rodney Broom Programmer: Desert.Net

Re: push_handlers and PerlAuthenHandler troubles [second try]

2001-06-26 Thread Rodney Broom
... /Location Any suggestions for me? Yep, Auth* happens at the Directory level. From the docs: AuthUserFile Context: directory, .htaccess So, if you have an other set of Auth* directives in the same scope, then that can cause conflicts --- Rodney Broom Programmer: Desert.Net

Persistant data accross processes

2001-06-25 Thread Rodney Broom
Hi all, I'd like a way to store complex data structures across Apache processes. I'velooked at Apache::DBI for an example: my tests say that he has to create a new dbh for every process. I've looked at IPC::Shareable, but it has to copy data. Meaning that I can only have a certain amount

Re: Sending Cookies from Access-Handler - Fixed

2001-06-16 Thread Rodney Broom
Something else, I haven't used CGI's cookie handling, but I have used Apache::Cookie. I know that this can be done from an AuthenHandler and from a TransHandler. --- Rodney Broom

Re: Unsubscribe me

2001-06-16 Thread Rodney Broom
Hi Kheeteck, You'll need to send an email [EMAIL PROTECTED] --- Rodney Broom

Setting an auth realm dynamically

2001-06-15 Thread Rodney Broom
I (like everybody else) have a site that is wholy dynamically generated. As such, I can't alway set an auth realm in the config or in .htaccess. What I'd like to do is an access handler like this: sub handler { my $r = shift; if ($r-uri =~ m/$some_magic_pattern/|) {

Re: Help Apache::Registry Setup

2001-06-15 Thread Rodney Broom
placed something like this in your config: FilesMatch \.mpl$ SetHandler perl-script PerlHandler Apache::Registry /FilesMatch --- Rodney Broom Programmer: Desert.Net

Re: Help Apache::Registry Setup

2001-06-15 Thread Rodney Broom
in a browser. Take not of the PID and time (or lack thereof), and reload. Do this 10-20 times and you'll see mod_perl magic (or toe stubbing, deppending on how you look at it.) --- Rodney Broom Programmer: Desert.Net

Re: IOSocket Problem

2001-06-15 Thread Rodney Broom
required, but basically: Restart Apache after every code changed. --- Rodney Broom Programmer: Desert.Net

Apache::Cookie-fetch fails silently

2001-06-15 Thread Rodney Broom
I've got this handler that calls Apache::Cookie-fetch, no problem. It's tested and works fine. So I installed the same handler (same machine) on a second Apache instance, but now Apache::Cookie-fetch fails, causing the handler to terminate. No messages, no nothin'. It doesn't even get to

Re: Sending Cookies from Access-Handler

2001-06-15 Thread Rodney Broom
From: Nenad [EMAIL PROTECTED] -expires = '+1M', What's the expiration date shown in your browswer? $r-warn('setting cookie ',$cookie);# this shows up in the error_log What does this show in the error log? I'm guessing setting cookie Apache::Cookie. --- Rodney Broom Programmer

Re: can not redirect on POST w/ CGI.pm

2001-06-14 Thread Rodney Broom
that you are giving the user their data and not somebody elses. --- Rodney Broom Programmer: Desert.Net

Re: can not redirect on POST w/ CGI.pm

2001-06-13 Thread Rodney Broom
you actually need CGI.pm? --- Rodney Broom Programmer: Desert.Net

Resetting STDIN after r-read

2001-06-08 Thread rodney Broom
how to handle this? --- Rodney Broom Programmer: Desert.Net

Re: Resetting STDIN after r-read

2001-06-08 Thread rodney Broom
. --- Rodney Broom Programmer: Desert.Net

Re: Resetting STDIN after r-read

2001-06-08 Thread Rodney Broom
From: rodney Broom [EMAIL PROTECTED] I've got this module that needs to redirect sometimes. In doing this, the next request misses any POST data. I was playing with saving the data to disk and then reloading it on the next request like this: if ($first_pass) { $r-read($data

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
? --- Rodney Broom

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
happens? --- Rodney Broom

Fw: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
and see if that helps... Cool, that could be it. If not, I'd get suspicious of anything else that can access Mysql. --- Rodney Broom

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
a driver problem. I would suggest creating a terribly minimized configuration that only includes the requisits and mod_perl stuff. Then see if that works. --- Rodney Broom

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
the string: 'Error: '. I'm wondering the same thing, what did ~that ~ error message say? --- Rodney Broom

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Rodney Broom
interfering. --- Rodney Broom

Finding AuthUserFile from the request object

2001-05-06 Thread Rodney Broom
Hi all, I'm trying to add a little bit more security to a running app. In this app, I'd like to be able to confirm what physical file was used in the 'AuthUserFile /path/to/pass.db' statement. This file choice needs to be dynamic, so I can't simply hard wire this info. Thoughts? Rodney

PHP4 causes DBI connections to fail silently in mod_perl

2001-05-06 Thread Rodney Broom
, but haven't found anything specific. Has anybody else seen this? Rodney Broom

Finding AuthUserFile name with the request object.

2001-05-05 Thread Rodney Broom
Hi all, I'm trying to add a little bit more security to a running app. In this app, I'd like to be able to confirm what physical file was used in the 'AuthUserFile /path/to/pass.db' statement. This file choice needs to be dynamic, so I can't simply hard wire this info. Thoughts? Rodney

Re: Problem with single quote ' character

2000-11-14 Thread Rodney Broom
Hmm, what was the message that you got back when you executed this stement? Rodney Broom - Original Message - From: "Omri Tintpulver" [EMAIL PROTECTED] To: "'Rodney Broom'" [EMAIL PROTECTED] Sent: Tuesday, 14 November, 2000 07:07 Subject: RE: Problem with sing

[REPOST] MyClass::import() not being called.

2000-10-23 Thread Rodney Broom
for this list, no help. Does anybody know what's happening here? Rodney Broom

Re: [REPOST] MyClass::import() not being called.

2000-10-23 Thread Rodney Broom
ing called at all. That sounds broken to me. ---- Rodney Broom

Re: simple cookie authorization?

2000-10-21 Thread Rodney Broom
rg/doc/LDS/CGI.pm-2.74/CGI.pm Then search on: HTTP COOKIES ---- Rodney Broom

MyClass::import() not being called.

2000-10-19 Thread Rodney Broom
, reading the Apache modules book, and even searching the archives for this list, no help. Does anybody know what's happening here? Rodney Broom

Re: Remembering Authentication

2000-10-17 Thread Rodney Broom
From: "Nicolas MONNET" [EMAIL PROTECTED] print $q-redirect("http://$l:$p\@$ENV{HTTP_HOST}/path"); Ack! Can anybody find a bigger security hole than this? Rodney Broom

Recognizing server config, like Aliases, from modules

2000-10-12 Thread Rodney Broom
for myself, but that doesn't seem very healthy or very efficient. What I'd like is a method: $r-get_aliases But I don't guess that exists, huh? Any thoughts? Rodney Broom

Re: [OT] hi all

2000-10-11 Thread Rodney Broom
ning across 3 tables and then back onto one of those tables again, and then using a bunch of LIKEs and ORs? Or is this just a simple "select * from xyz"? If it isn't obvious from your query as to what's the problems, then we should probably know a bit about your server config. Like, "We're ru

Re: [OT] hi all

2000-10-11 Thread Rodney Broom
be that the statement can probably be cleaned up a bit. Hey Rajesh, I know that you probably don't want to share the exactities of the query for business reasons, but any indication you can give would help in my oppinion. Rodney Broom

Re: [OT] flock under win32

2000-09-25 Thread Rodney Broom
data file after reboots. ---- Rodney Broom

Re: SELECT cacheing

2000-09-08 Thread Rodney Broom
($q) %results2 = $sth-fetch... # Results are the same, %results2 comes from cache. $sth = $dbh-prepare($insert) $sth-execute $sth = $dbh-prepare($q) %diff_results = $sth-fetch... # %diff_results is new data because the DB has changed. Just some thoughts for y'all to mull over. Rodney Broom

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
SB This one is much more efficient and requires even less coding: SB use LWP::Simple; SB $content = get("http://www.sn.no/") Even better, thanks Stas.

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
OK, lots of banter... Hey V, if you are on a *NIX system, then this is a fast way: open U, "lynx -source www.some.url.dom |"; $data = join '', U; There, you're finished. Admittedly, this isn't terribly efficiant, but it works just fine and has short devel time. ---- Rodney Broom

Re: Website problem

2000-07-29 Thread Rodney Broom
% perldoc perl This will tell you a bit about how to run Perl and also list many good sources of documentation. --- Rodney Broom

Re: Why is this book out of print?

2000-07-17 Thread Rodney Broom
I have this book, it's OK. I think it's mostly good for a guide on using LWP, but it sounds like that's what you need. Maybe this will help. ISBN: 156592214X Rodney Broom

Re: error DBI with quote

2000-07-10 Thread Rodney Broom
-SELECT-statements, the answer is yes. In fact, all statements have to be prepare()ed when using DBI, it's just a matter of who does the prepare(), you or DBI. Rodney Broom

Re: Is variable initialization necessary?

2000-07-10 Thread Rodney Broom
trict, but much safer. 3. Further, there are some issues on scoping vars (or rather failing to) when running under mod_perl. My experience sais to always lexically scope vars, preferably with my() where applicable. Rodney Broom

Re: Regex problem

2000-07-10 Thread Rodney Broom
The regex engine is seeing extra stuff in $string and thinking that you are trying to build an expression with it. To get Perl to handle $string as straight text, you need to quote it like this: $input =~ s/\Q$string\E/$change/g; Rodney Broom

Re: Can you tie session to exclusive db connection across http requests?

2000-06-26 Thread Rodney Broom
Hi Keith, It sounds to me like you're not getting alot of help on this one. Personally, I tend to agree with John the most. However, I find nothing intrinsically wrong with what you want to do. If you really ~need~ to lock a given data set against modification, then there are about a kagillion

Re: speed up/load balancing of session-based sites

2000-05-09 Thread Rodney Broom
Murali said: a) NFS mount a server which will store all session data Just a note, NFS in specific can be very problematic. It takes some real tuning to get it just right. As for distributed data; session data ~should~ be small, under a kB. So you could move it around in almost any fassion

ENV var names rewritten to REDIRECT_*

2000-04-21 Thread Rodney Broom
I've written a handler to do some auth work. It's implimented in a .htaccess with PerlAuthHandler. In the package, I set a couple of ENV keys for use by any pages/scripts in the request. Well, I have 3 different page types that can load under this auth system, CGI, mod_perl, and an internal thing

Re: Perl 5.6 and mod_perl

2000-03-31 Thread Rodney Broom \(OE\)
- Original Message - From: "Doug MacEachern" [EMAIL PROTECTED] if you could follow the hints in the SUPPORT doc for getting a stacktrace, that would help a great deal. Sure, I'll see what info I can get without tampering with current working installations. Rodney

Re: Perl 5.6 and mod_perl

2000-03-30 Thread Rodney Broom \(OE\)
- Original Message - From: "Jeff Stuart" [EMAIL PROTECTED] Has anyone tried to use mod_perl with perl 5.6 yet? Yes, all day. If so, how did it go? U guess. Lots of weird little errors that I can't quite resolve. I can get Apache installed, but if I build with mod_perl, I can't

Re: Problem using POD/mod-perl to document configuration files

2000-02-11 Thread Rodney Broom \(Office\)
to apache MyDirective On =back to pod This message contains confidential information... hehe, sent this from work did ya? -------- Rodney Broom

RE: Re: Problem using POD/mod-perl to document configuration files

2000-02-11 Thread Rodney Broom \(Office\)
ike to restart. You mentioned line endings, so I'm guessing that's not your problem. If you haven't already, maybe you should try your directives outside of the POD sections and make sure that they work. Let us know what happens... Rodney Broom