pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: PHP and POSTGRES under windows
Date: Mon, 17 Feb 2003 10:55:48 -0500
Message-ID: <5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca> (raw)
In-Reply-To: <20030215054157.66227.qmail@web21108.mail.yahoo.com>

port 80 is typically http - the default for pgsql is 5432.


At 12:41 AM 2/15/03, Raymond Chua Sing wrote:
>I have recently installed PHP and postgres(windows
>version by peerdirect) I accomplished linking the
>extension of postgres to php and made postgres to work
>with pgadminnII but I can't connect to the database
>using postgres functions this error always shows up on
>my page:
>"Unable to connect to PostgreSQL server:
>connectDBStart() -- socket() failed: errno=2 No such
>file or directory "
>and this code is what I use to connect to the DB
>"<?php
>    // Database variables
>    // $dbhost      = "db";
>    $dbname      = "hbcdb";
>    $dbusername  = "Mondi0924";
>    $dbpassword  = "1236964";
>
>    $dbconn = pg_connect("dbname=$dbname
>user=$dbusername password=$dbpassword port=80");
>    if (!$dbconn)
>    {
>       header("Location: error.php3?errorcode=1");
>       exit;
>    }
>?>"
>I have been using postgres in the office using a linux
>server thats why I need postgres at home could you
>please help me thx.




view thread (3+ messages)

Message-ID: <5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca>
Permalink:  ../5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: fbax@sympatico.ca
  Subject: Re: PHP and POSTGRES under windows
  In-Reply-To: <5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca>
  References: <20030215054157.66227.qmail@web21108.mail.yahoo.com> <5.1.1.6.0.20030217105432.033b87d0@pop6.sympatico.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox