Fatal error: Class ‘PDO’ not found in TDbConnection.php

PRADO is a component-based and event-driven programming framework for developing Web applications in PHP 5. A primary goal of PRADO is to enable maximum reusability in Web programming. To achieve the above goal, PRADO stipulates a protocol of writing and using components to construct Web applications.

So I start to learn how to use it. I am using WAMP server and Windows Vista. Everything was perfect; I make some pages with end-user activities, and good looking. And I was as happy as a baby seeing his mother, because the most code is object-oriented and it use component-based methodology.

But when I tried to create Active Record Classes, using prado-cli.php, it generates me the next error: Fatal error: Class ‘PDO’ not found in TDbConnection.php.

c:\wamp\www\helloworld>c:\wamp\php\php.exe c:\wamp\www\framework\prado-cli.php shell .

Command line tools for Prado 3.1.1.

Fatal error: Class ‘PDO’ not found in c:\wamp\www\framework\Data\TDbConnection.php on line 169

Although I’ve firstly changed the PHP settings in the WAMP Manager to use PDO, and secondly restarted Apache – it still did not work.

Basically the WAMP, has two PHP configuration files, located at:

\wamp\apache2\bin\php.ini

and

\wamp\php\php.ini

And I changed the file “\wamp\php\php.ini”, by removing the comments at the following lines:

extension=php_pdo.dll

extension=php_pdo_sqlite.dll

extension=php_sqlite.dll

Finally I tried again to use prado-cli.php for creating Active Record Classes, and … it worked perfectly.

Advertisements
Posted in PHP. Tags: , , , , . 8 Comments »

8 Responses to “Fatal error: Class ‘PDO’ not found in TDbConnection.php”

  1. Markus Says:

    thanks! you just saved me a lot of time. ;-)))

  2. Hakan ISIK Says:

    it is great , solved my problem. thank you very much !!!

  3. Robbie Says:

    Magic matey.. you saved me hours!!

  4. liar Says:

    wow it works too,, liar

  5. Sandeep Says:

    Hi This Is Sandeep Here i have some prob about PDO class with doctrine plz tell me plz plz plz see this error

    Fatal error: Class ‘PDO’ not found in /home/online/public_html/nzlook/library/Doctrine/Connection/Mysql.php on line 49

  6. Upgrade from 2.0.x to v3.0 - W-script blog & news Says:

    […] not installed/enabled. You need to edit the php.ini (if you have access to it – follow this tutorial) or ask your host to enable it for […]

  7. Ahmet Says:

    Thank You buddy…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: