mod_perl

2003-11-27
2003-12-08
  • Ricardo Pozza
    Ricardo Pozza
    2003-11-27

    i open a script that makes a persistent connection to a firebird.

    i have 2 identical scripts
    test1.pl and test2.pl running under mod_perl.
    if i open the first script it works fine, makes the conect to the firebird and make it persistent.
    but if i call the test2.pl, do not work...

    Can't connect: Unsuccessful execution caused by an unavailable resource.
    -unavailable database

    resuming, just the first script i call works, if i call test2.pl first the test1.pl will not work if i refresh.

    the connection just work with the script that have created the connectio.

    Any help ?????
    Thanks!!

     
    • Edwin Pratomo
      Edwin Pratomo
      2003-12-08

      Sounds like you are using a package global variable to hold the database handle. Try using lexical var and Apache::DBI for persistent database connections in mod_perl.