mod_perl-1.24 and php-3.0.16

2000-09-05 Thread Kenneth Lee
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

RE: Question about $sth-finish;

2000-08-15 Thread Kenneth Lee
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:

Apache::Session manpage

2000-08-11 Thread Kenneth Lee
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

make test failure

2000-08-08 Thread Kenneth Lee
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,

[OT] Error reads: Do you need to predeclare new?

2000-08-01 Thread Kenneth Lee
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

Re: [OT] Error reads: Do you need to predeclare new?

2000-08-01 Thread Kenneth Lee
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

Re: Templating System

2000-07-28 Thread Kenneth Lee
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

[OT] Is this thread the longest one of July? :-) (was: Templating System)

2000-07-28 Thread Kenneth Lee
Could we just summarize them up as an article? :P -kenneth

Re: Templating System

2000-07-27 Thread Kenneth Lee
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

Re: EVERYTHING=1

2000-07-26 Thread Kenneth Lee
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

Re: ScriptAlias hacking?

2000-07-26 Thread Kenneth Lee
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;

SIGNAL 11 - Help anyone?

2000-07-25 Thread Kenneth Lee
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"

Re: How do i know for certain i am using SSL?

2000-07-25 Thread Kenneth Lee
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 =

Apache::Session - can't undef %session?

2000-07-24 Thread Kenneth Lee
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

Apache::ASP+

2000-07-20 Thread Kenneth Lee
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

Make failed on DBD::Oracle 1.03/1.06

2000-07-20 Thread Kenneth Lee
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

Apache::Session - expected behaviour?

2000-07-20 Thread Kenneth Lee
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

Re: Apache::ASP+

2000-07-20 Thread Kenneth Lee
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

Re: [OT] mod_rewrite

2000-07-20 Thread Kenneth Lee
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

[OT] New element for CGI.pm (or StickyForms, etc.)

2000-07-18 Thread Kenneth Lee
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

[OT] New element for CGI.pm (or StickyForms, etc.) (revised)

2000-07-18 Thread Kenneth Lee
--- 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

mod_perl and FastCGI, again

2000-06-25 Thread Kenneth Lee
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] doesn't it supported?

2000-06-23 Thread Kenneth Lee
(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

RE: Any reason not to SSI include Registry scripts?

2000-06-21 Thread Kenneth Lee
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} =~

Expanding a URI

2000-06-13 Thread Kenneth Lee
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

Re: CGI/mod_perl strangeness...

2000-05-30 Thread Kenneth Lee
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:

Strange thing about CGI::Cookie?

2000-05-29 Thread Kenneth Lee
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

[Fwd: Re: Urgent : How do I redirect to multiple frames?]

2000-05-28 Thread Kenneth Lee
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

Re: CGI-cookie() problem

2000-05-24 Thread Kenneth Lee
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

CGI-cookie() problem

2000-05-23 Thread Kenneth Lee
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_

Apache::Util gives segfault

2000-05-23 Thread Kenneth Lee
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

scalar(%hash) gives zero

2000-05-21 Thread Kenneth Lee
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

writing code that works on machines with or without mod_perl

2000-05-18 Thread Kenneth Lee
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,

Re: writing code that works on machines with or without mod_perl

2000-05-18 Thread Kenneth Lee
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

Re: writing code that works on machines with or without mod_perl

2000-05-18 Thread Kenneth Lee
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

Re: mod_perl and ssi

2000-05-15 Thread Kenneth Lee
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.

Re: mod_perl and ssi

2000-05-15 Thread Kenneth Lee
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

Undefined DESTROY() in error_log

2000-05-13 Thread Kenneth Lee
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

About $r-connection-user

2000-05-12 Thread Kenneth Lee
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

strange behaviour about CGI::Cookie and CGI

2000-05-12 Thread Kenneth Lee
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

Error compiling mod_perl on linux

2000-04-18 Thread Kenneth Lee
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