I'm having an issue where the PHP interpreter is working as expected when I'm running from the command line, but if I open a PHP page through PHPStorm, I'm getting a different result.
I have a very simple program to test that I'm connecting to the DB as I expect:
When running from the command line, I'm getting the result I expect: PDO is created (Connected to the DB):
However, when I open this page in a browser, the PDO isn't created, and the exception is thrown:
This is problematic because in the code I'm working on, it's looking for a driver in an odd location:
I made sure my PHP instance has pdp_mysql enabled in php.ini
And PDO and MySQL are being properly loaded:
Is there something I needed to do in PHPStorm to make it aware of the PDO library?
The one thing that is odd is that if I do a phpinfo(), the PDO section seems to be blank: