Codice PHP:
public void ConnessioneDb() throws applException{
        try{
            Class.
forName(NOME_DRIVER); //carica il driver JDBC
        
}
        catch (
ClassNotFoundException e){
            throw new 
applException ("ERRORE nel caricamento del driver JDBC");
        }
        try{
            
connessione=DriverManager.getConnection(STRINGA_CONNESSIONE); //connessione al database
        
}
        catch (
SQLException e){
            throw new 
applException ("ERRORE nella connessione al database");
        }
    } 

Ecco forse ci sono riuscito...và meglio così??