Help for this page

Select Code to Download


  1. or download this
    [Wed Oct 12 22:13:18 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) m
    +od_ssl/2.8.24 OpenSSL/0.9.7g mod_perl/1.29 configured -- resuming nor
    mal operations
    ...
    [Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbn
    +ame='rodneyd', no database driver specified and DBI_DSN env var not s
    et at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
    [Wed Oct 12 22:13:18 2005] [error] Can't connect to data source Pg:dbn
    +ame='rodneyd', no database driver specified and DBI_DSN env var not s
    +et at /usr/local/share/perl/5.8.7/Apache/DBI.pm line 146\n
    
  2. or download this
    PerlModule Apache::DBI
    PerlModule Apache::Session::Postgres
    PerlModule Apache::Cookie
    PerlRequire /etc/apache-perl/db.pl
    
  3. or download this
    my $dsn = 'rodneyd';
    my $usn = 'postgres';
    Apache::DBI->connect_on_init(qq{dbi:Pg:dbname=$db}, $usn, '' ) || die 
    +"bleh";
    Apache::DBI->setPingTimeOut($dsn, 30 );
    1;
    
  4. or download this
    $dbh = DBI->connect("dbi:Pg:dbname=rodneyd",q/postgres/,"",{AutoCommit
    + =>0, RaiseError=>1, PrintError=>0}) || die "Could not Connec
    t to  DB".$dbi::errstr;