Hello. I tried your "pdo_mysql.php" library/wrapper. There is a big problem, though: when a duplicate entry is added to the database (and unique keys don't allow it), I get a PDO warning message echoed out, but pdo_error() doesn't return anything.
There is an alternative to the "upgrade.php" script, that already existed for a longer time. You can find it under http://pear.php.net/package/PHP_Compat (http://pear.php.net/package/PHP_Compat) and it is sometimes already installed on servers.
The emulation functions of PHP_Compat (http://pear.php.net/package/PHP_Compat) are often a bit cleaner and behave more (Warning messages) like the native ones would. It is suddenly also not complete yet, but both projects can be used in conjuction easily.
An open, cross-platform journaling program.
A scientific plotting package.