Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

easiest test other than php.ini to test to see if pdo is working

easiest test other than php.ini to test to see if pdo is working
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

Fatal error: Class 'PDO' not found

so I think this means that pdo is not enabled on wamp

and I can not find pdo in php.ini even though I uncommented all the pdo lines
Create php file with this content <?php phpinfo();?>

See if you're using the right php.ini
Avatar of rgb192

ASKER

i am using correct php.ini
dave
code works using php ide (using a different php.ini)
I just checked and it works fine in WAMP on my computer.  I enabled PDO using the tray icon for WAMP.  It's the only version of PHP I have on that computer.
Avatar of rgb192

ASKER

I followed your advice and enabled all the pdo using extensions on tray icon for wamp

I had to add these one at a time and after I added each, wamp restarted.

I still get same error.

I assume that they show up in 'phpinfo()' on WAMP.  I don't know what to tell you at this point since the code is known to work on WAMP and on IIS on another computer.   Any chance the two versions of PHP are interfering with each other?
Avatar of rgb192

ASKER

one is for ide
other is for wamp

so I dont think there is interferance
Avatar of rgb192

ASKER

this code sample did the trick
Good, glad to help.