advanced code snippet search
avenirer on 01/23/13
extension pdo
01/23/13 06:54am
Code to verify is PDO extension is installed.
<?phpif (!defined('PDO::ATTR_DRIVER_NAME')){ echo 'PDO unavailable';}elseif (defined('PDO::ATTR_DRIVER_NAME')){ echo 'PDO available';}?>
Report this snippet Tweet
Comment:
You need to login to post a comment.