I am currently using Apache::Session 1.53 and using
%session from two other PerlHandler's beside
HTML::Mason. I am having the problem of %session hash
not being cleared (returns old data). FYI, at the end
of a request, I 'untie %session'. On logout, I
perform the 'tied(%session)-delete'
On Thu, 7 Sep 2000, Andrew Dunstan wrote:
|Could someone please explain to me why everybody seems so intent on
|having a mod_perl handler fork in order to send mail? Why not just use
|the very common Net::SMTP package which just talks on an SMTP socket to
|whatever mailhost you have (localhost
On Fri, 8 Sep 2000, Daniel Watkins wrote:
Hi,
Does anyone know if a mod_perl dso
can be loaded into any of the more commercial flavours of apache
(Such as the IBM http server)
I have done some work with mod_perl on NT but now a
few mindless beauracratic nazi IT managers are waving
On Thu, 7 Sep 2000, FĂ©lix C.Courtemanche wrote:
Hi,
I have been looking around for some time already about this and here are the
2 solutions I came up with... I would like some comments, especially if you
think it would be safe / fast to use.
Uhm, did you read the proposed solutions at
On Fri, 8 Sep 2000, Nicolas MONNET wrote:
On Thu, 7 Sep 2000, Andrew Dunstan wrote:
|Could someone please explain to me why everybody seems so intent on
|having a mod_perl handler fork in order to send mail? Why not just use
|the very common Net::SMTP package which just talks on an SMTP
Knowing the shortage of the good mod_perl people on the human resources
market, you may find this thread educating and learn from the mistakes and
experiences of the others.
http://slashdot.org/comments.pl?sid=00%2F09%2F07%2F1613204cid=pid=0startat=threshold=4mode=nestedcommentsort=0op=Change
Hello all,
-- The Problem --
When i try try retrieve http://www.clickly.com/index.html
(Test-Site: not the real clickly.com) i get a blank return and i
mean a real blank content return (tried it with telnet to port 80 and
the server only sends back the headers of the
On Thu, Sep 07, 2000 at 11:06:00AM -0700, Perrin Harkins wrote:
On Thu, 7 Sep 2000, Nicolas MONNET wrote:
|Well, Apache::DBI does push a cleanup handler that does a rollback if
|auto-commit is off. Are you saying this isn't working?
I've run into a situation where it was'nt. I wanted
On Fri, 8 Sep 2000, Honza Pazdziora wrote:
|The code
|
|my $needCleanup = ($Idx =~ /AutoCommit[^\d]+0/) ? 1 : 0;
|if(!$Rollback{$Idx} and $needCleanup and Apache-can('push_handlers')) {
|print STDERR "$prefix push PerlCleanupHandler \n" if $Apache::DBI::DEBUG 1;
|
Roger Espel Llima wrote:
I've written a very small module to cache SELECT results from DBI
requests. The interface looks like:
use SelectCache;
my $db = whatever::get_a_handle();
my $st = qq{ select this, that ... };
my $rows = SelectCache::select($db, $st, 180);
this
I don't know about Roger, but in my situation queries are called as
follows.
my $queryhandle=Query("select blah from blah where blah")
the Query routine can be overloaded with a timeout value (a default
capable of being set), with a timeout of 0 meaning that the select
should never be cached
I thought you could set a cookie for a different domain - you just can't
read a different domain's cookie. So you could simply set 3 cookies when
the user authenticates.
Now I'm curious, I'll need to try that.
--
Joe Pearson
Database Management Services, Inc.
208-384-1311 ext. 11
Would it be possible to create a binary version of mod_perl for Win32 that
works with Activestate Perl?
-
In a message dated 09/07/2000 9:41:30 PM Pacific Daylight Time,
[EMAIL PROTECTED] writes:
On Tue, 5 Sep 2000 [EMAIL PROTECTED] wrote:
How is it that all Win32 binaries of
Greetings all,
This is an extremely broad question, but I was wondering if any of you
knew, off the top of your head, of any circumstances in which the
generation of custom response codes would be ignored. Say...
A subroutine is called in the case of an error that logs the warning to the
Joe Pearson ([EMAIL PROTECTED]) said something to this effect:
I thought you could set a cookie for a different domain - you just can't
read a different domain's cookie. So you could simply set 3 cookies when
the user authenticates.
You sure can -- otherwise Navigator wouldn't have the "Only
Cookies cannot be shared across domains (except the supercookie, due to a
bug in IE and Netscape? See http://cookiecentral.com for more info)
Cookies are bound to either a domain (domain.com) or a FQDN host.domain.com
Netscape sees everything as a FQDN if you select originating server only.
At 11:37 PM 9/7/00 -0600, Joe Pearson wrote:
I thought you could set a cookie for a different domain - you just can't
read a different domain's cookie. So you could simply set 3 cookies when
the user authenticates.
I don't think you can set a cookie for a completely different domain, based
on
Some good ideas, I think that this package might come out a bit thin though.
I've written a package that does arbitrary variable caching (like everybody
else). But it has a list of other bells and whistles. Things like cache
expiration and data refresh hooks. It's a pretty simple process.
From
DeWitt - this started as a reply to the modperl mailing list, I had a
look at File::Cache as my reply grew. See the end of this for the
relevant bit :) - think I've found a bug...
Drew Taylor wrote:
Roger Espel Llima wrote:
I've written a very small module to cache SELECT results from
On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote:
Would it be possible to create a binary version of mod_perl for Win32 that
works with Activestate Perl?
We're working on sorting out the linking issues so that building external
compiled modules such as AxKit and Embperl is trivial. Once thats done
On 7 Sep 2000 Randal L. Schwartz wrote:
This is neither necessary nor sufficient. Please stop with this
nonsense. An email address can have ANY CHARACTER OF THE PRINTABLE
ASCII SEQUENCE. An email address NEVER NEEDS TO GET NEAR A SHELL, so
ALL CHARACTERS ARE SAFE. Clear? Man, if I see ONE
Why not do this...
Implement sessions via DBI. All three servers will use the same table in the same
database for setting/getting session data (ie
'authenticated_uid' = 1425).
Pass the session id around in the path or in query string. Make sure your
applications include this data when
Buy a PC from Penguin Computing, it has Red Hat 6.2 and comes preloaded
with Apache/perl.. and tons of other goodies.
At 12:33 PM 9/8/00 +0700, Daniel Watkins wrote:
Hi,
Does anyone know if a mod_perl dso
can be loaded into any of the more commercial flavours of apache
(Such as the IBM
At 10:31 AM 09/08/00 +0200, Stas Bekman wrote:
Net::SMTP works perfectly and doesn't lack any documentation. If there is
a bunch of folks who use mod_perl for their guestbook sites it's perfectly
Ok to run sendmail/postfix/whatever program you like... But it just
doesn't scale for the big
On Fri, 8 Sep 2000, Bill Moseley wrote:
I don't know how well either of these scale. But if
scaling is important I'd think it best not to rely on
some smtp daemon.
this is a joke, right?
'i want to send lots of mail, i better not use a MAIL
SERVER'.
On Fri, Sep 08, 2000 at 11:17:31AM -0400, [EMAIL PROTECTED] wrote:
I have an immense amount of respect for you Randal, but I think you're
generalizing a bit much here. There are a number of cases where checking
an email address' validity makes perfectly good sense. The most obvious
is just
At 10:07 AM 09/08/00 -0700, brian moseley wrote:
On Fri, 8 Sep 2000, Bill Moseley wrote:
I don't know how well either of these scale. But if
scaling is important I'd think it best not to rely on
some smtp daemon.
this is a joke, right?
'i want to send lots of mail, i better not use a MAIL
On Fri, 8 Sep 2000, Stas Bekman wrote:
As far as benchmarks are concerned, I'm sending one mail after having
displayed the page, so it shoul'dnt matter much ...
Yeah, and everytime you get 1M process fired up...
Nevertheless, in benchmarks we ran we found forking qmail-inject to be
quite
No. But you can create subroutines and call them...
Or setup an include which defines various things to be subsitiuted...
-Original Message-
From: Issam W. Alameh [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:35 PM
To: Modperl list
Subject: init in Apache::ASP
Hello
On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote:
There is a very important reason for having to fork qmail-inject. Qmail
by default will not allow mail relaying as a good security measure. You
don't want your mail server to be used for spamming especially if you
have a T3 or a T1 link. Anyone who
Hello All,
Can I put my asp code at the end of my html page, but let it execute before
showing the html???
I want to have something like
Hello %=$name%
%
$name="something";
%
Can this show
Hello something
Regards
Issam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 10:21 PM -0400 9/7/00, [EMAIL PROTECTED] wrote:
I don't think there's any pretty way to do it. The only thing I can
think of off-hand is to generate the cross-server links dynamically,
including an encrypted token in the URL which will
On Fri, 8 Sep 2000, Tim Sweetman wrote:
- Use the DBIx namespace for the module.
Possibly. SQL is not the only application for this sort of tool, though
it seems to be the main one.
The module we're discussing is DBI-specific. At least the interesting
part of it is. The actual caching
Well even if I thought it might be possible with a single cookie the user
agents are by
by RFC2109 supposed to not allow it so even if I got something to work there is
no guarantee that it will work in the future, since it will most likely be a
security hole of the user agent.
See RFC2109 section
"Bill" == Bill Moseley [EMAIL PROTECTED] writes:
Bill I wouldn't want to depend on sending a lot of mail to a mail server I
Bill didn't have control over in the middle of a request.
Unless the mail is for very local delivery, EVERY piece of mail
goes to a mail server that you don't have
I want to write a handler that will basically do a bunch of
processing, create some information, and then run a script in the
handled directory passing in the information, afterwords, doing
some more work before finally returning. So, like:
sub handler {
my $r = shift;
# bunches of
Yes, I ran into this while I was making a version of Apache::DBI which uses
'reauthenticate' to maintain a single connection per Apache child (per
database) and simply reauthenticate on that connection. It turned out that
I modified what $Idx was composed of and didn't understand why I was not
On Fri, 8 Sep 2000, Perrin Harkins wrote:
On Fri, 8 Sep 2000, Stas Bekman wrote:
As far as benchmarks are concerned, I'm sending one mail after having
displayed the page, so it shoul'dnt matter much ...
Yeah, and everytime you get 1M process fired up...
Nevertheless, in benchmarks
On Fri, 8 Sep 2000, Bill Moseley wrote:
At 10:31 AM 09/08/00 +0200, Stas Bekman wrote:
Net::SMTP works perfectly and doesn't lack any documentation. If there is
a bunch of folks who use mod_perl for their guestbook sites it's perfectly
Ok to run sendmail/postfix/whatever program you like...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 2:23 PM -0400 9/8/00, Aaron Johnson wrote:
a) the link actually goes to a local page that then pulls the unique code for
that user and appends it to the
URL for the domain2.net site and they are sent with the unique code via post.
domain2.net then
On Thu, Sep 07, 2000 at 06:22:40PM -0700, Perrin Harkins wrote:
I'd say this is probably useful to some people, so go ahead. A few
suggestions:
- Use the DBIx namespace for the module.
Sounds reasonable. The question then is: what should the API be like?
The way it works right now is
On Fri, Sep 08, 2000 at 09:26:23AM -0400, Drew Taylor wrote:
I'm certainly interested. One question though - in the module do you
blindly use the cache? I ask because in my instance I display the
contents of a shopping cart on every page. And while only a few pages
change the cart contents,
On Fri, Sep 08, 2000 at 03:46:25PM +0100, Tim Sweetman wrote:
This can be an extremely powerful approach to speeding up web
applications. We use a similar module which ended up fairly large - it
takes a method name arguments, rather than an SQL string, meaning that
you can cache the result
[EMAIL PROTECTED] (Philip Molter) wrote:
However, whenever I pass $r, it invariably gets recreated as an
Apache object or, if I fiddle around with Apache::PerlRun, it gets
maybe recreated as an Apache::RegistryNG object, depending on how
I make PerlRun inherit things. The point is, I /want/
Hi there,
On Fri, 8 Sep 2000, Issam W. Alameh wrote:
I want to have something like
Hello %=$name%
%
$name="something";
%
Try to think of it as a program. You can't use the variable's value
until you've set it. Why does it matter where
On Fri, 8 Sep 2000, Roger Espel Llima wrote:
- If possible, use some existing cache module for the storage, like
Apache::Session or one of the m/Cache/ modules on CPAN.
Others have suggested Storable. I've used this one before, and I can
agree that it's probably a good solution.
Stas wrote:
On Fri, 8 Sep 2000, Perrin Harkins wrote:
Nevertheless, in benchmarks we ran we found forking qmail-inject to be
quite a bit faster than Net::SMTP. I'd say that at least from a
command-line script qmail-inject is a more scalable approach.
Quite possible, I was talking about
At 03:59 PM 9/8/00, G.W. Haywood wrote:
Try to think of it as a program. You can't use the variable's value
until you've set it. Why does it matter where it goes in the page?
Not exactly true for Perl, is it? -- the BEGIN subroutine comes to
mind. What follows is just a speculation on my
I'm wondering how much improvement this caching is over the database caching
the parsed SQL statement and results (disk blocks)?
In Oracle, if you issue a query that is cached, it doesn't need to be parsed.
If the resulting blocks are also cached, there isn't any disk access. If the
database is
On Fri, 8 Sep 2000, Perrin Harkins wrote:
On Fri, 8 Sep 2000, Roger Espel Llima wrote:
- If possible, use some existing cache module for the storage, like
Apache::Session or one of the m/Cache/ modules on CPAN.
Others have suggested Storable. I've used this one before, and I can
Hi,
Having a big problem here.
When I use an eval{} block to trap dbi errors, it doesn't seam to work as
documented under mod_perl.
When I found this problem, I created a test program that connects, prepares
and executes a bogus sql
statement. The $lsth-execute() || die $DBI::errstr; is
Kee Hinckley [EMAIL PROTECTED] writes:
At 10:21 PM -0400 9/7/00, [EMAIL PROTECTED] wrote:
I don't think there's any pretty way to do it. The only thing I can
think of off-hand is to generate the cross-server links dynamically,
including an encrypted token in the URL which will
"Issam W. Alameh" wrote:
Hello All,
Can I put my asp code at the end of my html page, but let it execute before
showing the html???
I want to have something like
Hello %=$name%
%
$name="something";
%
Can this show
Hello
Regarding cost of forking etc.:
Your mileage will undoubtedly vary, according to OS and MTA.
Last time I did work on this was about a year ago on Solaris
2.6, with sendmail and postfix. In both cases using Net::SMTP
was far faster. IIRC, with postfix there is no forking cost at all,
Title: RE: open(FH,'|qmail-inject') fails
Another approach to is to write the email directly into the queue. I've used this approach and it's very fast. After you write your email to the qmail queue, you write a value of 1 to a named pipe that qmail reads off of. This causes a qmail process
Under mod_perl, the die() within the eval block causes the
program to really die.
Does your program (maybe CGI.pm or something used by CGI.pm?) set
$SIG{'DIE'}? IIRC, $SIG{'DIE'} has precedence over eval{}, something
many consider to be a bug.
If so, I'd try:
eval {
local $SIG{'DIE'}; #
Title: Core dumping
Hello -
I am experiencing a situation where apache core dumps. We are using HTML-Mason. The relevant revision numbers are:
Apache_1.3.12
mod_perl-1.24
perl-5.6.0
HTML-Mason .87
redhat 6.1 (no patches)
Our apache server is built in 2 flavors, one that uses Mason,
57 matches
Mail list logo