Hi all,
Did this already spotted sometime before? (I apologize if the PHP stuffs
bothers you).
One of our PHP applications crashed Apache after moving to a new server,
which with both mod_perl and mod_php3 installed. After few hours of
debugging process, it turns out that the evil was the
as written in the manpage, this is rarely used, it will be called for you
when the handle is going out of scope, but if something is still left in the
buffer some warnings will be generated.
-Original Message-
From: Vladislav Safronov
To: [EMAIL PROTECTED]
Sent: 8/15/00 7:26 PM
Subject:
With 1.50 Apache::Session::DBI is gone, but I still see it in the manpage.
I was just confused by this a few hours. Is it already scheduled
for removal?
I'm using 1.51.
-kenneth
Today I run make test with mod_perl the first time (I was skipping it before)
modules/request.Modification of a read-only value attempted at
modules/request.t line 128.
modules/request.dubious
Test returned status 2 (wstat 512,
This may not be mod-perl related.
I wrote a module CGI::CommonObject which is a subclass of CGI.
If I preload them both in conf/startup.pl, error occurs when I try to
instantiate CGI::CommonObject.
bash$ perl test.pl
Bareword found where operator expected at /www/perl/test.pl line 3, near
A few more tests confirmed that I can't preload CGI::CommonObject in
startup.pl, otherwise the error occurs.
Everything works fine after I remove the line in startup.pl, and let
Apache::Registry load it.
Kenneth Lee wrote:
This may not be mod-perl related.
I wrote a module CGI
Perrin Harkins wrote:
On Thu, 27 Jul 2000, Kenneth Lee wrote:
My ideal system would be those the designer can see the server-side
objects and data fields in the database, and only associate them with
the template by drag-n-drop. The designer doesn't sees any special
tags, and doesn't
Could we just summarize them up as an article? :P
-kenneth
My ideal system would be those the designer can see the server-side
objects and data fields in the database, and only associate them with
the template by drag-n-drop.
The designer doesn't sees any special tags, and doesn't have to conform
to those "variables" with the programmer. The
i agree, i always use EVERYTHING=1 so that i don't have to recompile
mod_perl for specific modules.
Matt Sergeant wrote:
Why can't we make EVERYTHING=1 the default? It just seems so much more
sensible to me... (I get a lot of problems with people having compiled a
default mod_perl and who
if i understand correctly, you should have in your httpd.conf something
like
Location "/bar"
SetHandler perl-script
PerlHandler Your::Handler
Options +ExecCGI
/Location
then, in your module
package Your::Handler;
sub handler {
my $r = shift;
my $path_info = $r-path_info;
Here's the backtrace,
[root@app perl]# gdb /www/bin/httpd
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying"
how about the scheme of the request URL? hmm.. but that needs
parsing the URL...
Joao Pedro Gonçalves wrote:
Hi, is there any method that will work through all the different
apache ssl implementations?
Currently what i do (with openssl) is:
my $s = $r-lookup_uri($r-uri);
my $ssl =
Hi all,
I found that if I explicitly undef %session, CLEAR will be triggered
before DESTROY clearing $self-{data}, so $self-save actually update
nothing in the database.
# Apache/Session.pm
...
sub CLEAR {
warn "CLEAR!\n";
...
sub DESTROY {
warn "DESTROY!\n";
...
# The
Hi all!
Any one started to make one? It seems a good idea. Of coz it's not simple
to build the whole complex platform (NGWS), but the concept of server-side
object and the event driven model is too interesting to me.
Kenneth
System:
RedHat 6.1
Perl 5.6.0
DBI 1.14
Oracle 8.1.5
Here's the output for 1.03 and 1.06.
[root@test4 DBD-Oracle-1.03]# make
mkdir blib
mkdir blib/lib
mkdir blib/lib/DBD
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DBD
mkdir blib/arch/auto/DBD/Oracle
mkdir blib/lib/auto
Hi all,
I found that if I explicitly undef %session, CLEAR will be triggered
before DESTROY clearing $self-{data}, so $self-save actually update
nothing in the database:
# Apache::Session
...
sub CLEAR {
warn "CLEAR!\n";
...
sub DESTROY {
warn "DESTROY!\n";
...
# The
See this link
http://www.asptoday.com/articles/2712.htm
Paul Lindner wrote:
On Thu, Jul 20, 2000 at 03:10:15PM +0800, Kenneth Lee wrote:
Hi all!
Any one started to make one? It seems a good idea. Of coz it's not simple
to build the whole complex platform (NGWS), but the concept
http://www.engelschall.com/pw/apache/rewriteguide/
Jeff Jones wrote:
I know this is off the topic of modperl but if anyone
knows of a good reference (book/webpage or whatever),
I would appreciate it if you could pass those on.
I am reading the URL rewriting guide at apache and I
am just
Hi all,
anyone thought of a 'date_field' element for CGI.pm (or StickyForms, etc.)?
this is my thought,
use CGI qw/:standard/;
print date_field(
-name ="expiry",
-year =2000,
-month=12,
-day =25);
$expiry_date = param('expiry');
which is an elegant way to do
use
---
Subject: [OT] New element for CGI.pm (or StickyForms, etc.)
Date: Tue, 18 Jul 2000 17:45:21 +0800
From: Kenneth Lee [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Hi all,
anyone thought of a 'date_field' element for CGI.pm (or StickyForms, etc.)?
this is my th
Hi there,
Not performance. Not preference.
The question is, will mod_fastcgi and mod_perl conflict when both are
compiled into Apache? Theoretically not I think. And what would the
consequences be? Please comment.
Thanks.
Kenneth
(XOT: eXtremely OT)
perl complains about variable method calls ($obj-$meth) when I move from
5.6.0 back to 5.00503, it says syntax error near "$meth".
i think this is supported at the very beginning. did i missed sth?
kenneth
Hey, I'm doing this too! I use #include virtual to invoke
my CGI scripts to embed some dynamic objects. But to do so
my scripts have to add a if-construct to get the query string
when running as a SSI script:
if ($ENV{SERVER_PROTOCOL} eq 'INCLUDED') {
($qstr) =~ ($ENV{REQUEST_URI} =~
Hi all,
I'm writing a fixup handler which do some statistics for each request
base on the URI. The problem is when I open "/", I have no way to know
the file sent to the client in the Response Phase is "/index.html" or
whatever it was mapped.
$r-filename gives me "/www/htdocs", i.e
I've posted this to the list two days before. Look for the thread
"Strange thing about CGI::Cookie?".
All you have to do is put "$CGI::NO_DEBUG = 1" before CGI::Cookie-parse,
or in BEGIN {} if you prefer.
Trevor Phillips wrote:
I'm getting in my Apache Error Log file:
(offline mode:
I see this line in my error_log,
(offline mode: enter name=value pairs on standard input)
And I sure it is caused by CGI::Cookie-parse (or fetch).
Any idea why this would happen?
Kenneth
Original Message
Subject: Re: Urgent : How do I redirect to multiple frames?
Date: Sat, 27 May 2000 10:37:34 -0700 (PDT)
From: Paul [EMAIL PROTECTED]
To: Kenneth Lee [EMAIL PROTECTED]
sadhanandham balaraman wrote:
How can one redirect HTML docs to
different frames
that all mod_perl scripts are sharing the same $CGI::Q, if
they `use CGI qw(:standard)' to import the methods.
Kenneth
"Randal L. Schwartz" wrote:
"Kenneth" == Kenneth Lee [EMAIL PROTECTED] writes:
Kenneth Hi perlers,
Kenneth It seems that CGI-cookie() is not always retur
Hi perlers,
It seems that CGI-cookie() is not always returning the right thing.
For example, three clients A, B and C send to the server three different
session keys X, Y and Z repectively. In some circumstances, CGI-cookie()
gives Y as A's cookie, Z as B's and X as C's, while they _are_
When I pass an undef (or "", maybe) to Apache::Util-unescape_uri_info
it gives me segfault.
Any idea?
Kenneth
- PerlHandler -
package Apache::SegFault;
use Apache::Util qw(unescape_uri_info);
sub handler
{
my ($r) = shift;
$r-send_http_header("text/html");
print
My script has these lines in it,
my %in; CGI::ReadParse(\%in);
print scalar(%in);
print %in;
Then I run it under shell,
bash$ ./myscript.pl foo=1 bar=2
It gives me
0foo1bar2
Can anyone explain why the "0" but not the bucket usage?
Kenneth
PS. I'm using 5.6.0 with mod_perl/1.22
modperlers,
does it make sense if i put some mod_perl specific codes inside
an eval() so that the code runs on machines that have or haven't
mod_perl installed?
eval 'MOD_PERL_CODE' if $ENV{MOD_PERL};
use Apache ();
my $r = Apache-request;
...
MOD_PERL_CODE
if i don't do so,
arggg... i was sticked to "use" instead of "require"...
but how about if i've to import something?
Matt Sergeant wrote:
On Thu, 18 May 2000, Kenneth Lee wrote:
modperlers,
does it make sense if i put some mod_perl specific codes inside
an eval() so that the c
i know that, but it doesn't work if i use "use", since the block
will be eval()'d at compile time:
eval {
die unless $ENV{MOD_PERL};
use Apache::Constants qw(:common);
...
};
it complains if Apache::Constants is not installed.
Matt Sergeant wrote:
On Thu, 18 May 200
When I try the RegistryFilter+SSI approach, the headers generated by
my scripts _occasionally_ show up in the output (but as I see in SSI.pm,
there's really no header output when Filter is On). Provided that
PerlSendHeader is On, if I set it to Off, the headers always show up in
the output.
fine.
Thanks,
Kenneth
Ken Williams wrote:
Regarding the Filter approach, are you sending the headers yourself? You
shouldn't. Filter will do that for you.
Don't know much about the OutputChain approach.
[EMAIL PROTECTED] (Kenneth Lee) wrote:
When I try the RegistryFilter+SSI approach
I see this error message in my error_log,
[Sat May 13 13:06:38 2000] [error] (in cleanup) Undefined method
HTML::FastTemplate::DESTROY at
/usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache/Registry.pm line 144
Does it mean that I have to add a dummy DESTORY() in my package? Is there
any
hi modperlers,
If I call $r-connection-user(something) in a PerlAccessHandler,
besides I can see that user name in the access log, will $ENV{HTTP_USER}
be set by Apache or the subsequent handlers, like the default auth and
authz modules? Or I have to set it myself explicitly?
kenneth
hi all,
(i couldn't find any hints on this in the docs, so here it goes)
consider these two one-liners,
perl -MCGI -MCGI::Cookie -e'$q=new CGI;print $q-param("foo")' foo=bar
perl -MCGI=:standard -MCGI::Cookie -e'print param("foo")' foo=bar
it doesn't print "bar" as expected. it doesn't
Hi all,
I tried to compile mod_perl with Apache on RedHat 6.1 and perl
5.005_03, it gave me thousands of unresolved references when compiling
httpd.c. I then went thru the FAQs on the Web, and it told me that my
perl maybe corrupted. Then I go to grab the latest perl 5.6.0 source,
compiled
41 matches
Mail list logo