rgb192
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Create php file with this content <?php phpinfo();?>
See if you're using the right php.ini
See if you're using the right php.ini
ASKER
i am using correct php.ini
dave
code works using php ide (using a different 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.
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 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?
ASKER
one is for ide
other is for wamp
so I dont think there is interferance
other is for wamp
so I dont think there is interferance
ASKER
this code sample did the trick
Good, glad to help.
ASKER
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