Re: questions on $r-lookup_uri

2001-08-26 Thread Benjamin Trott
1 - Why was no documentation for this method found in the manpage for Apache::Request? Where should I have looked for docs on this? perldoc Apache There are some Apache API docs on ap_sub_req_lookup_uri here: http://httpd.apache.org/docs/misc/API.html#req_orig Though they may not

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Benjamin Trott
PH Don't open a connection during startup. PH Open a connection in the child process instead. BT I will second this. I've done this (unintentionally) when using MySQL, and BT you get a lot of weird errors about statement handles being active, etc. I haven't read the entire thread, so

Re: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Benjamin Trott
PH Don't open a connection during startup. If you do, it will be shared when PH Apache forks, and sharing a database handle is bad for the same reasons PH sharig a file handle is. Open a connection in the child process instead. I will second this. I've done this (unintentionally) when using

Re: Error decrypting in message using gpg in modperl script

2001-08-09 Thread Benjamin Trott
Anyone know why the decryption fails using gpg when run in a perl script in a browser but works if run in a shell? Here's the code sample: my $cipher = TAG; -BEGIN PGP MESSAGE- pvbhS8Q22VYPqn+4sitEw0bgTmDhPo6rruzsSJxCHLBUyTPrYaPlmelF2iADCpKD

Re: ssl encryption

2001-06-14 Thread Benjamin Trott
When apache is serving a ssl connection, I assume that everything sent back and forth between the server and the client is encrypted. I want an mod_perl script to encrypt/decrypt credit card numbers obtained over the ssl connection for storage in a db on the server. Is there any access to

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
I think that this: PerlSetVar = { Auth_DBI_data_source = 'dbi:Pg:dbname=reckdb', Auth_DBI_username = 'dvicci', Auth_DBI_pwd_table = 'user_profile', Auth_DBI_uid_field = 'user_username', Auth_DBI_pwd_field = 'user_password', Auth_DBI_pwd_whereclause = '"user_usertype0"',

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
However, now I'm getting this: Perl: PerlSetVar takes two arguments, Perl config var and value. I don't think PerlSetVar likes this line: [ Auth_DBI_pwd_whereclause = '"user_usertype0"' ], You could try taking out the quotes and see if that helps, cause it did for me (though I didn't

Re: Smart installing (Re: mod_perl advocacy project resurrection)

2000-12-06 Thread Benjamin Trott
Perhaps part of this is that we simply need smarter configure/install methods. ... I've also dealt with this on another app I'm working on (currently under NDA) that requires a bunch of modules, a set of tables in a database, mod_perl, etc. I've been dealing w/ very similar issues in work

Re: Files .. in virtualhosts in perl sections

2000-11-16 Thread Benjamin Trott
Anyone have any experience doing Files sections inside of perlsections virtualhosts. I can't see anything in the docs about this. Just wanted to ask before I start experimenting, as I don't have the first clue about how this syntax might work. Assuming I'm not missing something subtle about

Re: Flakey [Named]VirtualHost support, should TieHash be used?

2000-11-08 Thread Benjamin Trott
just use push? push @{ $VirtualHost{$ip} }, { ... }; Much easier, yes? Same thing here: $NameVirtualHost[++$#NameVirtualHost] = $ip; push @NameVirtualHost, $ip; bye, Benjamin Trott

Re: Flakey [Named]VirtualHost support, should TieHash be used?

2000-11-08 Thread Benjamin Trott
Attempt to free unreferenced scalar. Attempt to free unreferenced scalar. Attempt to free unreferenced scalar. Attempt to free unreferenced scalar. Attempt to free unreferenced scalar. Interesting. Is the number of "Attempt to free unreferenced scalar." messages the same as the number of

Re: [REPOST] MyClass::import() not being called.

2000-10-23 Thread Benjamin Trott
The types of parameters I'll pass to this handler will change machine-by-machine. You see, I need to run this package on several different servers, and need it to know how to configure it's self. Okay... I don't think I get exactly why this situation makes using PerlSetVar

Bizarre Perl Sections Problem

2000-10-21 Thread Benjamin Trott
t I'd like to know *why* this is happening. Thanks all. bye, Benjamin Trott