Re: mod_perl 1.0 to 2.0 migration

2022-12-06 Thread Chris Bennett
a new framework when I had to change from version 1 over to 2, but it was really much easier for me to make a few code changes in lots of files rather than start from scratch. I actually ended up with better code after fixing those little bugs that were not worth the effort when writing it originally. -- Chris Bennett

Re: [RELEASE CANDIDATE] mod_perl-2.0.12 RC2

2021-12-23 Thread Chris Bennett
27;s easy to pick up. :-} -- Thank you all! Chris Bennett

Re: help for DNS queries

2019-08-05 Thread Chris Bennett
, I'm curious to see how all of these new names will play out over time. Chris Bennett

Re: simple question. Not using 2.xxx10. query params

2018-01-09 Thread Chris Bennett
ying to find a suitable server and get a working laptop! Trying to get a friend's Windows laptop working with an old firefox and an old version of Java was a couple of days of frustration! Thanks, Chris Bennett

simple question. Not using 2.xxx10. query params

2018-01-09 Thread Chris Bennett
re a method that was undocumented in version 2.09? The manual page right where this would be explained says it needs to be finished, which leaves me clueless on how to proceed. Thanks, Chris Bennett

Re: [OT?] How the Perl connects with Apache's C

2016-06-13 Thread Chris Bennett
Forgot to mention that this isn't just a blah blah question. I do intend to connect with a base system C file, allowedhost.c and possibly others also. So I DO want to use any helpful information for an actual project. Chris Bennett

[OT?] How the Perl connects with Apache's C

2016-06-13 Thread Chris Bennett
ice web browser page would make life easy. You can reply to me off-list if this should not be on the mailing list. Thanks Chris Bennett

Re: Singleton Persistence

2014-02-04 Thread Chris Bennett
On Tue, Feb 04, 2014 at 11:42:43AM +0100, Vincent Veyron wrote: > Le lundi 03 février 2014 à 19:13 -0500, Perrin Harkins a écrit : > > On Mon, Feb 3, 2014 at 5:33 PM, Chris Bennett > > wrote: > > > Right now I am using pg_1_.pl and pg_2.pl on the different hosts, but >

Re: Singleton Persistence

2014-02-03 Thread Chris Bennett
t the code is identical, except that some data is pulled in from a config file for the different databases, etc used. Can I safely use pg.pl on both VirtualHosts or do I need to do something else also to do this? Thanks, Chris Bennett > > On Mon, Feb 3, 2014 at 4:30 PM, Vincent Veyron wrot

How best to get my mod_perl programs to run under CGI for non-mod_perl users?

2012-12-15 Thread Chris Bennett
->print(); work as print? I have read that CGI.pm and Apache::Request are similar but not the same. Is something already written to do this out there? A guide? These applications use: use Apache::Request(); use DBI(); All of these modules are using Apache::Registry, not handler. Thanks, Ch

Considering using Perl Sections

2010-10-01 Thread Chris Bennett
the AuthCookie sections out into confs for each virtual host using it, learn to use Perl Sections, or something different? Any suggestions are welcome. Thanks Chris Bennett

Considering using Perl Sections

2010-10-01 Thread Chris Bennett
break the AuthCookie sections out into confs for each virtual host using it, learn to use Perl Sections, or something different? Any suggestions are welcome. Thanks Chris Bennett

Re: What a strange error...

2010-06-29 Thread Chris Bennett
er: http://www... That reminds me: 1) chmod +x mailfile.pl 2) dos2unix mailfile.pl Perhaps cp removes the wrong line endings? Anyway, you can also fix files with vi :%s/ctrl-v ctrl-m//g Works like a charm. I don't have dos2unix. Chris Bennett

Re: modperl book

2010-06-18 Thread Chris Bennett
it requires very careful, well written perl. It is an excellent teacher Good Luck, Chris Bennett

Re: Truoble getting Apache::AuthCookie to work on server

2010-05-20 Thread Chris Bennett
On 05/20/10 12:12, Perrin Harkins wrote: On Thu, May 20, 2010 at 11:12 AM, Chris Bennett wrote: Well I'm pretty clueless. It works fine on nearly identical desktop at home. Won't work on server. That means the problem is either different versions on the one that doesn&#

Re: Truoble getting Apache::AuthCookie to work on server

2010-05-20 Thread Chris Bennett
Well I'm pretty clueless. It works fine on nearly identical desktop at home. Won't work on server. I don't know what else I can try. I have tried using Location instead of Directory. Changed module names. Fiddled with startup.pl Still always get uri as /perl/login.pl and creds as uninitialized.

Re: Truoble getting Apache::AuthCookie to work on server

2010-05-19 Thread Chris Bennett
On 05/19/10 17:11, André Warnier wrote: Chris Bennett wrote: After getting it to work just fine on my desktop, without any virtual hosts, I can't get it to work right on my server in a virtual host. I have Apache::AuthCookie (and several derived versions) working fine in multiple Virtua

Truoble getting Apache::AuthCookie to work on server

2010-05-19 Thread Chris Bennett
both version 3.12 and 3.14 Thanks Chris Bennett -- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone,

Re: Access log is erratic with my scripts

2010-04-27 Thread Chris Bennett
On 04/27/10 12:07, Chris Bennett wrote: After seeing logs mentioned above, I remembered this. I do not see my scripts appearing properly in access log I have an older script that never shows an access into the log (only errors) I have a new script with same name but a few differences in two

Re: Access log is erratic with my scripts

2010-04-27 Thread Chris Bennett
On 04/27/10 13:28, Perrin Harkins wrote: On Tue, Apr 27, 2010 at 1:07 PM, Chris Bennett wrote: I do not see my scripts appearing properly in access log That probably means your scripts are crashing before they finish. You could use mod_log_forensic to find out more. - Perrin This was a

Access log is erratic with my scripts

2010-04-27 Thread Chris Bennett
After seeing logs mentioned above, I remembered this. I do not see my scripts appearing properly in access log I have an older script that never shows an access into the log (only errors) I have a new script with same name but a few differences in two different virtual hosts. After a stop sta

Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread Chris Bennett
I am combining into my module, subs for two scripts doing very similar, yet a little different functions. Many subs can be used by both unchanged. Some are almost right except for the arguments One script works on two output files at once, the other, just one. So I did this and it seems to work

Re: Getting a / when regex should produce nothing

2010-04-26 Thread Chris Bennett
pen sooner! :) Thanks Chris Bennett

Re: Getting a / when regex should produce nothing

2010-04-25 Thread Chris Bennett
On 04/25/10 08:57, André Warnier wrote: Chris Bennett wrote: ... > $article_file = $q->param("articlefilename") || ''; ok, so suppose it is "12345.html.en" ... if ($article_file =~ /^([a-zA-Z0-9_-]+\.html.?\w?\w?)$/) { $article_file = $1; } else { $ar

Re: Getting a / when regex should produce nothing

2010-04-25 Thread Chris Bennett
On 04/24/10 21:38, Chris Bennett wrote: When I run this first time, with no values from form, I get $article_file being a / when it should be nothing. I just can't see the error. I have tried variations with \w and dash at beginning and end, but no go. Debug shows blank at A, / at B #!/us

Re: Getting a / when regex should produce nothing

2010-04-24 Thread Chris Bennett
On 04/24/10 21:38, Chris Bennett wrote: When I run this first time, with no values from form, I get $article_file being a / when it should be nothing. I just can't see the error. I have tried variations with \w and dash at beginning and end, but no go. Debug shows blank at A, / at B #!/us

Getting a / when regex should produce nothing

2010-04-24 Thread Chris Bennett
icle_file = $1; if ($debug) { $error .= qq{$article_file};} $article_backup_file = $article_file; $article_backup_file =~ s/\.html$/_backup.html/; undef my $body; Thanks Chris Bennett -- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, wri

Re: best practie for open and close connection database

2010-04-21 Thread Chris Bennett
On 04/21/10 11:33, Felipe de Jesús Molina Bravo wrote: Hi In my application, I opened my database from authentication handler and close it from child exit handler. It is correct (is a best practice)? or is a bad design? where i can read for best practice for it? thank's Are you using Apach

Re: Apache::DBI connect_on_init problem

2010-04-17 Thread Chris Bennett
On 04/17/10 15:09, Jiri Pavlovsky wrote: On 17.4.2010 22:22, Chris Bennett wrote: On 04/17/10 14:27, Jiri Pavlovsky wrote: Hello, I'm trying to prestart db connection. But Apache::DBI->connect_on_init is not working. Gives no error, but db connection is not made. Setting $Apache::DB

Re: Apache::DBI connect_on_init problem

2010-04-17 Thread Chris Bennett
On 04/17/10 14:27, Jiri Pavlovsky wrote: Hello, I'm trying to prestart db connection. But Apache::DBI->connect_on_init is not working. Gives no error, but db connection is not made. Setting $Apache::DBI::DEBUG = 2 indicates that ChildInitHandler runs. I tried to create my custom ChildInitHandle