I want to use PDO but I\'m not sure whether my hosting has set it up properly.
How can I test, in PHP, whether it is setup and working for MySQL?
Aside from using phpinfo() to see if it's correctly listed
if (!defined('PDO::ATTR_DRIVER_NAME')) { echo 'PDO unavailable'; }