• Ricardo Pozza
    Ricardo Pozza

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

    i have 2 identical scripts and 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, 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 first the will not work if i refresh.

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

    Any help ?????

    • Edwin Pratomo
      Edwin Pratomo

      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.