[supersaibal]
Originariamente inviato da Fabio Heller
Però anche con le eccezioni, per ora, devo fare throw manuale
[/supersaibal]
non necessariamente:
codice:
<?php // 5
class ErrorCapture {
private $__handler;
final function __construct() {
$this->__handler = set_error_handler(
array(
&$this,
'throwException'
)
);
}
final public function throwException(
$errno,
$errstr,
$errfile,
$errline
) {
throw new Exception( $errstr );
}
}
new ErrorCapture;
try {
mysql_connect( 'localhost', 'nouser', 'nopass' );
}
catch( Exception $e ) {
echo 'Error
';
echo $e->getMessage();
}
?>
[supersaibal]
Originariamente inviato da Fabio Heller
Come fanno a usare sqlite 3? Da quel che sapevo l'estensione PHP è ancora alla versione 2 [/supersaibal]
ero convinto di averlo visto usare in pear, ma non trovo piu' il layer, comunque leggi le specifiche di questo 
http://www.php.net/manual/en/ref.pdo.php
[editato]
che poi sul link delle PECL c'e' la dll