-HTTP thing
going on at the same time from the same port?
---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/
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/
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
and the coffee
isn't strong enough today.
---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/
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/
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/
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/
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/
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/
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/
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/
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
?
---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/
to that server instance work properly. Any
thoughts?
---
Rodney Broom
President, R.Broom Consulting
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
, I'll often use open() instead of system().
---
Rodney Broom
another aproach.
---
Rodney Broom
.
---
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
?
---
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
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
Thank you.
---
Rodney Broom
Programmer: Desert.Net
::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
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
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
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
...
/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
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
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
Hi Kheeteck,
You'll need to send an email [EMAIL PROTECTED]
---
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/|) {
placed something like this in your
config:
FilesMatch \.mpl$
SetHandler perl-script
PerlHandler Apache::Registry
/FilesMatch
---
Rodney Broom
Programmer: Desert.Net
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
required,
but basically: Restart Apache after every code changed.
---
Rodney Broom
Programmer: Desert.Net
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
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
that you are giving the user their data and not somebody elses.
---
Rodney Broom
Programmer: Desert.Net
you actually need CGI.pm?
---
Rodney Broom
Programmer: Desert.Net
how to handle this?
---
Rodney Broom
Programmer: Desert.Net
.
---
Rodney Broom
Programmer: Desert.Net
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
?
---
Rodney Broom
happens?
---
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
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
the string:
'Error: '. I'm wondering the same thing, what did ~that ~ error message say?
---
Rodney Broom
interfering.
---
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
, but haven't found anything specific. Has anybody else seen this?
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
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
for this list, no help. Does anybody know what's
happening here?
Rodney Broom
ing called at all. That sounds broken to
me.
----
Rodney Broom
rg/doc/LDS/CGI.pm-2.74/CGI.pm
Then search on:
HTTP COOKIES
----
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
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
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
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
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
data file after reboots.
----
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
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.
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
% perldoc perl
This will tell you a bit about how to run Perl and also list many good sources
of documentation.
---
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
-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
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
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
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
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
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
- 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
- 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
to apache
MyDirective On
=back to pod
This message contains confidential information...
hehe, sent this from work did ya?
--------
Rodney Broom
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
76 matches
Mail list logo