Is there a PHP command I can use to determine if PDO is enabled or disabled?
I know I an manually run phpinfo() and eyeball it, but I have a script I run various web
You have two options:
if (extension_loaded('pdo')) { /* ... */ }
Or (this one is not 100% reliable since it can be implemented in user-land classes):
if (class_exists('PDO', false)) { /* ... */ }
Personally, I prefer the first option.