Re: pg_connect parameter order? [message #1177 is a reply to message #1176] |
Wed, 28 November 2007 10:15 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I am using PHP 5.2.5 and PostgreSQL 8.2.3, and I have never encountered this problem. I can connect to the 'radicore' database (as specified in $GLOBALS['PGSQL_dbname'] in the config.inc file) and access any schema within that database without any problem whatsoever.
The manual does not indicate any sequence in which the arguments in the connection string should be specified, and as they are named arguments it should not matter anyway. I have tried altering the sequence, but every sequence yields exactly the same result - they all work the same.
If your debugging revealed that you were connecting to the postgresql default db instead of the 'radicore' db, then what value did you have in $GLOBALS['PGSQL_dbname']? Did you actually create a db with this name? Did you create all the radicore schemas (menu, audit, dict, workflow) within this db?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|