$host = "127.0.0.1"; $port = "5432"; $username = "postgres"; $password = "p*a*s*s"; $dbname = "gestion"; $con = pg_pconnect("host=".$host." port=".$port." dbname=".$dbname." user=".$username." password=". $password); }
----- Original Message ----- From: "Alvaro Herrera" <alvhe...@alvh.no-ip.org> To: "Juan Carlos Badillo Goy" <badi...@uci.cu> Cc: pgsql-es-ayuda@postgresql.org Sent: Saturday, September 26, 2009 10:47:21 PM (GMT-0500) Auto-Detected Subject: Re: [pgsql-es-ayuda] ayuda urgente con postgres + php en Unit HP-UX Juan Carlos Badillo Goy escribió: > Saludos a todos listeros, estoy instalando postgres + php en un servidor Unix > HP-UX, hasta el momento he logrado instalar por separado el apache+php y > postgres, al paracer sin problemas. > > 1.Logro conectarme desde mi terminal con el pgadmin al postgres y creo la bd > sin problemas. > 2.levanto perfectamente el sitio publicado hasta al pagina del logueo o > identificacion. > 3.cuando entro los datos de autentificacion me emite el siguiente error: > > Warning: pg_pconnect() [function.pg-pconnect]: Unable to connect to > PostgreSQL server: could not get socket error status: No such file or > directory in /opt/hpws/apache/htdocs/misitio/conexion/oconn.php on line > 10 Por favor muestra la linea que estas ejecutando, incluyendo los valores de las variables que uses en ella de haberlas. -- Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J "This is what I like so much about PostgreSQL. Most of the surprises are of the "oh wow! That's cool" Not the "oh shit!" kind. :)" Scott Marlowe, http://archives.postgresql.org/pgsql-admin/2008-10/msg00152.php -- TIP 8: explain analyze es tu amigo