Class 'PDO' not found error
If you get a class 'PDO' not found error. It could be caused by the PDO classes not being installed in your PHP setup. Check your setup, php.ini, and do a phpinfo().
Also try checking to see if you have an incorrect stray php.ini in the directory of you .php file. If you do it could be causing the problem.