Jump to content

[Solved] PostgreSQL issue


parcela2

Recommended Posts

I have been used Tommy server a year and use postgreSQL database under PHP web.

 

Recently i changed my domain from .tk to .red and I'm experiencing problems with functions pgsql in PHP.

 

The principal:

 

After closing a pgsql connection with:

 

pg_close($dbconn);

 

the php die and stops all with this instruction even if the connection with db is successfull.

 

Before change my domain, this issue did not appear.

 

an example:

 

https://www.laparcela.red/control/test.php

 

After "Conectado con éxito" there are a echo "Hola mundo" and not appears.

 

This also happens if the connection is not correct.

$dbconn = pg_connect("host=localhost .. etc)
   or die("No se pudo conectar");
echo "Conectado con éxito";
pg_close($dbconn);
echo '<p>Hola Mundo</p>';

or die not works.

 

 

 

Link to comment
Share on other sites

Php 5.6, the same that the other domain.

 

I think that the problem is the domain change.

Any registry are configured to .tk

 

to vew:

 

https://www.laparcela.red/info.php

 

 

Here is the same script

 

 

http://www.valiantz.es/test.php

with a other info php to compare

http://www.valiantz.es/info.php

Edited by parcela2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...