On Thu, 3 Aug 2000, Jamie Krasnoo wrote:
Program received signal SIGSEGV, Segmentation fault.
0x8086ef0 in perl_handler_ismethod ()
yes, cvs should fix this, here's the diff:
--- mod_perl.c 2000/05/25 18:06:23 1.121
+++ mod_perl.c 2000/06/02 17:23:07 1.122
@@ -1222,7 +1222,7 @@
On Mon, 19 Jun 2000, Paul wrote:
I'm running out of ideas.
PerlFreshRestart was completely unused, then explicitly set Off.
I have two handlers, which seem to work well. My logs report nothing
amiss aside from the stream of segmentation faults killing off my
server children, usually
From: Jay Jacobs [mailto:[EMAIL PROTECTED]]
On Tue, 15 Aug 2000, Tom Mornini wrote:
It is my understanding of the DBI docs that you only need to call
$sth-finish when you DON'T fetch all the rows that the
$sth has ready to
return.
From "Writing Apache Modules with Perl and C":
From: Vladislav Safronov [mailto:[EMAIL PROTECTED]]
What can you say about this code? is it ok (overwriting
previous handle)?
==
sub foo {
my $dbh = shift;
my $sql1 = "select *...
my $sql2 = "select *...
my $sth = $dbh-prepare($sql1);
$sth-execute;
On Tue, 15 Aug 2000, Doug MacEachern wrote:
On Tue, 4 Jul 2000, Matt Sergeant wrote:
Shouldn't DIR_MERGE be called when .htaccess files are found at different
levels, e.g:
/axkit/.htaccess
and
/axkit/test/.htaccess
I ask for /axkit/test/test.xsp
I would have expected it
On Fri, 11 Aug 2000, Matt Sergeant wrote:
sub handler {
my $r = shift;
my $do_undef = ref($r)
(lc($r-dir_config("UndefOnReload") || '') eq
'on');
Would be neat to have this as an import parameter.
I don't know why I never got it into StatINC, but I've
On Tue, 15 Aug 2000, Mark D. Anderson wrote:
(not sure whose email got delayed since i posted this question some time ago --
thanks for the tip though on how to get more meaningful modperl crash info).
The problem was the symbol conflict between XML::Parser and apache when built
with
On Tue, 15 Aug 2000, Ask Bjoern Hansen wrote:
On Fri, 11 Aug 2000, Matt Sergeant wrote:
sub handler {
my $r = shift;
my $do_undef = ref($r)
(lc($r-dir_config("UndefOnReload") || '') eq
'on');
Would be neat to have this as an import parameter.
I've
Well, summarizing all the answers and assuming using Mysql
1. $sth-finish should be used if (and ONLY if) the
the returned data (any SELECT, but not INSERT, UPDATE?)
has not been fetched ALL and $sth is going to be
overwritten..
2. $sth (defined as 'my') should not call finish before
Due to forgetfulness I was recently bitten by the infamous "my() Scoped
Variable in Nested Subroutines" problem using Apache::Registry, and it got
me thinking about whether it is fixable.
From the diagnostics:
This problem can usually be solved by making the inner subroutine
anonymous, using
Hi all,
I try to print to a local printer from an CGI script running under
mod_perl.
Using the open pipe function does not work. How can I manage ?
(systemcall?).
tnx in advance,
mfs
Trevor Phillips [EMAIL PROTECTED] wrote:
I'm revisiting a routine I have which in the ContentHandler phase,
redirects to another URI (status 302). While redirecting, I'd like to
also set a cookie.
I set the URI header as well, due to habit. Didn't there used to be a browser
which required
-Original Message-
From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 15, 2000 11:22 PM
To: Geoffrey Young
Cc: '[EMAIL PROTECTED]'
Subject: Re: $r-get_handlers bug/oversight?
On Tue, 25 Apr 2000, Geoffrey Young wrote:
Hi all...
I've
Did you think about
http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subproce
ss
I mean that if you detach an subproc witch deals with printings your main
mod_perl server doesn't wait for the print Job complete .
Best
Constantin
- Original Message -
From:
Hello All,
I currently have a PerlHandler that simply appends some data to all
outgoing text/html files. In my .htaccess file:
SetHandler perl-script
PerlHandler AddHtml
Then in the AddHtml.pm file:
...
## Print the page asis
my $rqh =
You might use Apache::Filter and chain your output into Apache::SSI.
Works for me but ymmv :-)
Simon Wilcox
Williams Lea Group.
From "Jim Sproull" [EMAIL PROTECTED] Date 14:34:15 16 August
2000
To: [EMAIL PROTECTED]
cc:(bcc: Simon
Bill Moseley wrote:
FWIW -- I'm using a modified version of Ken Williams' Apache::AuthCookie to
handle session control via cookies or munged URLs. I originally wanted to
use his custom login script instead of the pop-up browser login, but I had
clients that don't have cookies enabled. So I
Title: Problems installing Apache::Scoreboard
I am running RH6.0 / Perl 5.005_03 / mod_perl 1.22 and I'm getting the following errors when trying to install Apache::Scoreboard. Any ideas?
# make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Apache
mkdir blib/arch
mkdir blib/arch/auto
mkdir
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 2:17 AM
To: [EMAIL PROTECTED]
Subject: getting rid of nested sub lexical problem
Below is a processed version of the increment_counter example from the
guide that works as
"Douglas" == Douglas Wilson [EMAIL PROTECTED] writes:
Douglas That gives me a 'Variable "$counter" may be unavailable at ./tst2 line 17.'
Douglas warning. And its sort of obfuscated (to me, anyway). I'd probably do it this
Douglas way:
Douglas #!/usr/local/bin/perl -w
Douglas use strict;
Apache/1.3.12 (Unix) mod_perl/1.24 Perl 5.6.0
In which handlers can $r-custom_response be set?
Is there any way to chain ErrorDocuments? I'd like to add a header and do
some special logging on some errors, but let the normal error response do
its work.
And, as has been said before, it would
All,
I am seeing the following errors in my apache error log. These have
appeared since moving to a Linux/mod_perl1.24 combination (from NT/1.23)
so I don't know if they come from 1.24 or from the -w switch being handled
better under unix.
Anyone know what these
hello, all
I am trying to write a module that generates a canned footer for all
html and cgi pages on my site.
the html part is pretty easy and I have already implemented it. However,
I am currently having trouble adding it
to standalone cgi scripts that are not parsed by the server. I have
It may not be exactly what you're looking for but try looking at
Apache::Sandwich or Apache::ProxyStuff
On 16-Aug-2000 Alex Menendez wrote:
hello, all
I am trying to write a module that generates a canned footer for all
html and cgi pages on my site.
the html part is pretty easy and I have
This already exists, can't get more canned than that.
checkout mod_layout here:
http://www.tangent.org/mod_layout/
Granted it's not a perl module, but it works and is rather customizable...
-Original Message-
From: Alex Menendez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16,
Have you looked at Apache::Sandwich from CPAN? It is easy to implement
and I have used it for awhile now to add confidentiality headers and
footers to pages in a small to medium site.
cpan m /Apache::Sandwich/
Module id = Apache::Sandwich
CPAN_USERID VKHERA (Vivek Khera [EMAIL PROTECTED])
Hi all,
I think I misled everybody with my previous question on this topic. To put
it in simple words:
Apache 1.3.12/mod_perl 1.24/Solaris 2.7
I'm establishing db connection at server startup and the logs indicate
that's done. But in my subsequent calls to 'connect' in my scripts, I see
the same
Your right. this works great for html! Unfortunately, however, Apache
sandwich really does not work for me because it only deals with GET
requests and it can not deal with cgi requests directly. I would need to
alter my cgi's in order to use sandwich. I am looking for a mod_perl
solution that
"BWH" == Bruce W Hoylman [EMAIL PROTECTED] writes:
BWH Have you looked at Apache::Sandwich from CPAN? It is easy to implement
BWH and I have used it for awhile now to add confidentiality headers and
BWH footers to pages in a small to medium site.
The only real trick is that you are
Hmmm, the reason I'm not using Apache::DBI right now is coz our current
scripts are using DBlib to talk to Sybase. Looks like I have to make
thousands of changes all over the place after all and start using DBI.
Those of you folks already using Apache::DBI, can you tell me what kind of
message is
If I have mod_perl installed, will CGI's not running under mod_perl benefit
from Apache::DBI as well if they connect to the same database?
Mark W
-Original Message-
From: Shimon Rura [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 2:22 PM
To: Pramod Sokke; [EMAIL
Pramod Sokke writes:
Hmmm, the reason I'm not using Apache::DBI right now is coz our current
scripts are using DBlib to talk to Sybase. Looks like I have to make
thousands of changes all over the place after all and start using DBI.
Those of you folks already using Apache::DBI, can you
-Original Message-
From: Alex Menendez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 2:07 PM
To: [EMAIL PROTECTED]
Cc: The MODPERL
Subject: Re: canned footers
Your right. this works great for html! Unfortunately, however, Apache
sandwich really does not work
-Original Message-
From: Mark D Wolinski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 2:32 PM
To: [EMAIL PROTECTED]
Subject: RE: DB persistence
If I have mod_perl installed, will CGI's not running under
mod_perl benefit
from Apache::DBI as well if they
Take a look at Apache::ProxyStuff. It requires you set another server (can be
virtual) but it doesn't care about methods or content type.
On 16-Aug-2000 Alex Menendez wrote:
Your right. this works great for html! Unfortunately, however, Apache
sandwich really does not work for me because it
There's an Apache::Sybase::DBlib module floating around somewhere that
you could use if you don't want to make all those changes.
I'm right now using that module and it's with that module that I'm getting
the message in my error logs about establishing connection to db for every
connect call.
On 16-Aug-2000 Vivek Khera wrote:
"BWH" == Bruce W Hoylman [EMAIL PROTECTED] writes:
BWH Have you looked at Apache::Sandwich from CPAN? It is easy to implement
BWH and I have used it for awhile now to add confidentiality headers and
BWH footers to pages in a small to medium site.
The
Pramod Sokke writes:
There's an Apache::Sybase::DBlib module floating around somewhere that
you could use if you don't want to make all those changes.
I'm right now using that module and it's with that module that I'm getting
the message in my error logs about establishing connection
I have an addition for the Apache/Perl Module List, under PerlHandler's
PageKit cmpOApplication framework w/ HTML::Template TJMATHER
Here is a brief description of the module:
PageKit is a set of Perl modules that provides an application
framework based on mod_perl and
I have the following code in several of my mod_perl handlers:
my $dbh = DBI-connect($c{db}{dsn}, $c{db}{user}, $c{db}{pass})
|| die(DBI::errstr);
Is there a way to do something like:
my $dbh = $MyModules::DBH;
instead of putting connect string in *EVERY* script?
to get the database handle?
On Tue, 15 Aug 2000, T.J. Mather wrote:
I have an addition for the Apache/Perl Module List, under PerlHandler's
PageKit cmpOApplication framework w/ HTML::Template TJMATHER
Here is a brief description of the module:
PageKit is a set of Perl modules that provides
does anyone know how to get the output of a standalone cgi script from a
mod_perl module
I have tried all the subrequest stuff but I can't get it to work.
Apache seems to parse the cgi file once a handler has been called. simply
writing a handler that returns DECLINED every time it is called
I got a couple of e-mails asking where this module could be found. I plan
to release the module in a few days on CPAN. I will make an announcement
on this list when I do.
-TJ Mather
Hi,
We've worked out a solution to get sticky form fields inside Apache::ASP
We use HTML::FillinForm and a custom tag to get the desired behaviour.
Put this is in global.asa:
sub fillin {
my $args = shift;
my $html = shift;
my $fif = new HTML::FillInForm;
my $output = $fif-fill(
It seems that Apache::Request::param returns inputs like
[EMAIL PROTECTED]
as
email=mike [EMAIL PROTECTED]
I can live with that, since + is a reserved character and lots of
apps expect '+' to read as ' '. But the problem is that
[EMAIL PROTECTED]
also comes through as
Hi all,
The NewSof Group is a Seatlle based company specializing in Content
Development and building web based communities.
We currently are looking for a Perl Programmer (~3+ yrs exp.)
comfortable with working in a UNIX environment to help us build
community/collaboration, asset managment
Converting "sub foo" into "local *foo = sub" won't work when the function
is called before is declared, because the local only works for the rest
of the block, not the entire block. i.e. you can't do
foo();
local *foo = sub {
...
};
Plus, I think you usually need the trailing
Here is a brief description of the module:
PageKit is a set of Perl modules that provides an application
framework based on mod_perl and HTML::Template. It is based on the
Model/View/Controller approach to design, with complete seperation
of Perl from HTML. It includes session
The 'surgery on Oracle' technique described in the README.java file in
the DBD::Oracle 1.06 distribution fixed all the problems I was having
with DBD::Oracle and mod_perl.
Whew.
--
Larry Mulcahy [EMAIL PROTECTED]
PGP public key at:
49 matches
Mail list logo