Hello.
i have some problems with db connection.

Inside include_config.php i wrote
$db_host='xxx';
$db_login='xxx';
$db_pass='xxx';
$database = 'xxxx';

$dsn        = "pgsql://$db_login:$db_pass@$db_host/$database";

In window pop-up the error is DB Error: syntax error

i try different solutions but even if the reported errors are different does not work.


$dsn        = 'pgsql://user:pass@localhost:5432/dbname';

error : DB Error: syntax error

$dsn = new PDO("pgsql:host=xxxx;dbname=xxxx;user=xxxx;password=xxxx");

error Unable to include the DB/.php file for '://:PASSWORD@/'

The connection to the database postgres operating normally as I see the layers whose data are taken from the db
I installed the PHP Pear DB package and PEAR MDB2

any ideas? after installation I had to restart apache or service postgresql?

thank you

Eleonora
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to