By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

phpunit3 using PDO could not find driver postgres

P: n/a
i have phpunit installed as on the site(http://www.phpunit.de/
pocket_guide/3.2/en/installation.html).

im running simple tests (that actually have been running on sqlite
base) and I got that silly error that PDO could not find a driver for
my postgresql db. that is it PDOEXception could not find driver and
nothing else.

I made a test and everything works fine when I am connecting from
simple php file to pgsql. there is no problem with driver, connection,
user, pass, inserts and selects. thats why i suppose that phpunit
causes errors.

does anyone have any idea how to fix that?
Dec 13 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ok so solution is to set system variable PHPRC to point to your
php.ini if your php.ini is in other location than PHP_HOME

take care
Dec 13 '07 #2

P: n/a
kamiseq wrote:
ok so solution is to set system variable PHPRC to point to your
php.ini if your php.ini is in other location than PHP_HOME

take care
That's one way. Another it just make sure the php.ini file the system
is using is the one you're changing.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.