Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-11-27 Thread Todd Farmer
I've written a custom module (say "dbConnect.PM") where the password is hard-coded and is a return value from a function (e.g., "get_password()"). This module is not located in a publicly-accessible folder (i.e., not in htdocs or cgi-bin). My scripts in the cgi-bin call this custom module's functi

Re: server side includes using cgi

2003-10-10 Thread Todd Farmer
, the output of CGI scripts to be parsed for Server Side Include directives using the INCLUDES filter in mod_include. The module mod_ext_filter allows external programs to act as filters in much the same way that CGI programs can act as handlers. Todd F. - Original Message - From: "

Re: server side includes using cgi

2003-10-10 Thread Todd Farmer
I think I remember this was to change with Apache 2.0. Does anybody know if this is true or just wishful thinking? Todd F. > > "Dale Young" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello all, > > > > I have been trying include a 'server side include' in a cgi script u

Re: calling other cgi's in PERL

2003-09-29 Thread Todd Farmer
I've used LWP to call cgi scripts like that. This example is probably more complicated than it needs to be, because I had to use the POST method to call the scripts I was running behind the scenes: use LWP::UserAgent; use HTTP::Request; use HTTP::Headers; ... my $em = new CGI; $em->delete_all; $

Re: SQL question // date_format

2003-09-28 Thread Todd Farmer
I've used DATE_ADD function in MySQL for similar purposes: "SELECT id, DATE_FORMAT(DATE_ADD(datecreated, INTERVAL 2 HOUR), '%c/%e/%y at: %l:%i %p'), email, name, comments FROM $table_name order by id limit $offset,10;" Todd F. - Original Message - From: "David Gilden" <[EMAIL PROTECTED

Re: Custom 500 Error Script

2003-01-07 Thread Todd Farmer
That did the trick, thanks! Thanks to all who took time to help me out. Todd - Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Webmaster'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 10:47 AM Subject: RE: Custom 500 Error Script > Webmast

RE: HTTPS in LWP

2002-12-30 Thread Todd Farmer
It sounds like that is the issue. Thanks! Todd -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 3:48 AM To: Todd Farmer Cc: [EMAIL PROTECTED] Subject: Re: HTTPS in LWP From the docs (lwpcook): "HTTPS URLs

HTTPS in LWP

2002-12-28 Thread Todd Farmer
I'm having trouble getting a response using HTTPS in LWP. I get content from the HTTP server, but when I change the URL to https://... it does not return anything. Here's the code: #!/usr/bin/perl use CGI; use LWP::UserAgent; use HTTP::Request; use HTTP::Headers; my $q = new CGI; my $em = new