XML configuration

1

In the configuration of pMapper (Mapserver framework for PHP), there is this configuration which I am in doubt as to how to configure it.

<dsn encoding="UTF-8">pgsql://postgres:postgres@localhost/db</dsn>

Would it be something like this?

<dsn encoding="UTF8">pgsql://[usuario]:[senha>@[localhost]/[banco]</dns>
    
asked by anonymous 27.11.2014 / 20:56

1 answer

2

Yes, your example is correct:

motorBD://<utilizador>:<password>@servidor/<nomeBaseDados>

Example:

<dsn encoding="UTF-8">pgsql://postgres:postgres@localhost/gisdb</dsn>
<sql>SELECT DISTINCT name FROM cities1000 WHERE population > 10000 AND name ~* '^[search]' ORDER BY name</sql>

Example above from the documentation in pmapper - Attribute search .

    
28.11.2014 / 00:44