You are not logged in.

#1 2012-01-05 22:17:49

RobinJ
Member
From: Merksplas, Belgium, Europe
Registered: 2012-01-05
Posts: 19
Website

[Solved] Installing PHP PDO

I'e made a few PHP scripts which I run from the command line. Only, some of these scripts use PDO, which, for some reason, doesn't get installed in Arch Linux when I install php-sqlite, and doesn't seem to have a seperate package either. I've tried installing php_pdo-dblib from the AUR, but that doesn't seem to have made any difference.

[robin@robinArchLinux µBot]$ php index.php
PHP Fatal error:  Uncaught exception 'PDOException' with message 'could not find driver' in /media/Data/Documenten/PHP/µBot/index.php:6
Stack trace:
#0 /media/Data/Documenten/PHP/µBot/index.php(6): PDO->__construct('sqlite:./databa...')
#1 {main}
  thrown in /media/Data/Documenten/PHP/µBot/index.php on line 6

So the logical question is, how can I get this working?

Last edited by RobinJ (2012-01-06 13:56:51)

Offline

#2 2012-01-06 12:12:39

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: [Solved] Installing PHP PDO

Have you uncommented this line in your /etc/php/php.ini?

extension=pdo_sqlite.so

Offline

#3 2012-01-06 12:41:26

RobinJ
Member
From: Merksplas, Belgium, Europe
Registered: 2012-01-05
Posts: 19
Website

Re: [Solved] Installing PHP PDO

... What?
I thought the ; was supposed to be there :-$ I didn't know ; was being used for comments... Sorry :-$
And thanks big_smile

Last edited by RobinJ (2012-01-06 12:42:21)

Offline

#4 2012-01-06 12:58:15

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: [Solved] Installing PHP PDO

I take it the issue is solved then. big_smile

Please edit the first post and add [Solved] in front of the thread title to help others who may have the same problem.

Offline

Board footer

Powered by FluxBB