Configuration of XML

Asked

Viewed 39 times

1

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

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

It would be something like that ?

<dsn encoding="UTF8">pgsql://[usuario]:[senha>@[localhost]/[banco]</dns>

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 taken from the documentation in pmapper - Attribute search.

  • Yeah, I’m trying to make this example work. But it doesn’t say it’s OK and it doesn’t say it’s wrong. Sometimes I think he gives an ironic smile and says: 'If you turn black, you don’t want to be a programmer'? Then take!' =/

  • Clears me a doubt and whether in <dsn encoding="UTF8">pgsql://[usuario]:[senha>@[localhost]/[banco]</dns> the password has a special character at the beginning or end, such as a @. What would be correct: Single or double quotes ?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.