Fatal error: Class 'PDO' not found in...


Allycw
Asked:
2013-07-27 7:45 pm EST

Hits: 906
I'm trying to publish my website but am hitting problems with my database connectivity. I'm trying to open a sqlite database using the code

$this->link = new PDO('sqlite:'.$this->db_name);

This is throwing the error
Fatal error: Class 'PDO' not found in ... on line ...

I checked my php.ini and I have these lines in it
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

Struggling to see the problem?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

JacobIMH
Staff
9,962 Points
2013-07-29 2:08 pm EST
Hello Allycw, and thank you for your question.

I see that it looks like you already submitted a support request for this same issue, and I see in that ticket that one of our support technicians was able to resolve your problems by adding a new php.ini file for you. I'm assuming that the syntax of your original one was off by a bit somewhere.

If you're still having any issues at all please let us know.

- Jacob

You must login before you can post a comment about this answer.

I did, apologies for my impatience, I submitted a ticket when I did not receive a reply here, but you guys swiftly resolved my problem through the support ticket system. Thanks as ever for the great service.
Allycw
8 Points
2013-08-09 5:49 pm EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!