Jump to content

Recommended Posts

Posted

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.

 

 

 

Posted (edited)

Yes yes, i say that the 7.2 version not have pgsql and with 7.1 the problem is the same.

 

Today i tested it to change versions

Edited by parcela2
Posted

There are any solution possible?

 

I think that is general and if someone change the domain, suffers the same.

 

Maybe restarting the web space will solve the problem.

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...