Is it possible that PDO is incorrectly installed on the server, leading to this unusual reaction?

It is possible that the PDO extension is not properly installed on the server, causing the error. To resolve this issue, you should check the PHP configuration to ensure that the PDO extension is enabled. Additionally, you may need to install or enable the PDO extension on the server.

<?php
// Check if PDO extension is enabled
if (!extension_loaded('pdo')) {
    die('PDO extension is not enabled on this server.');
}

// Your code using PDO can go here
?>