logo       


Re: Problems in connecting to postgreSQL using PHP: msg#00037

Subject: Re: Problems in connecting to postgreSQL using PHP
Hi!!! I'm Venezuelan and I don't know how to speak english very well, so excuse me if i make a mistake.

About the connection: Did you do your script by yourself?, or copied a functional one?

As Thomas Schindler said, send us any PHP errors or the pg_hba.conf ?

Here is my connection script, it is completly good check it out to see if you have anything wrong

<?  /*---------------*/
    $servidor = "localhost";
     $base = "databasename"; //change it
     $usuario = "postgresuser"; //change it
     $password = "postgresuser"; //change it
  
     pg_pconnect("host=$servidor dbname=$base user=$usuario password=$password");
  
?>

That's all what I can do for now

2007/3/12, Matthew Terenzio <matt@xxxxxxxxxxxxx>:
Could you provide any PHP errors or the pg_hba.conf ?

On Mar 12, 2007, at 12:25 AM, Kitty Yuen wrote:

> Hi,
>
> I am trying to connect my postgreSQL with PHP in localhost. I have
> start up the server with -i flag ( i.e. postmaster -D
> /usr/local/pgsql/data -i &) and edit the pg_hba.conf. However, I still
> cannot connect with the database. But, when I tried to remote access
> the database through SSH and I can connect with it.
>
> Would you please offer any suggestions or solutions?
>
> Manythanks,
> Kitty3A


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster



--
***************************************************************************
Ministerio de Planificación y Desarrollo de la República Bolivariana de Venezuela
Dirección de Planes de Personal

José Valentín Orfila Briceño
Programador II

Teléfonos: Celular: (0416) 4131418

E-mail: valentinorfila@xxxxxxxxx
           valentinorfila@xxxxxxxxxxx
           josevalentinorfila@xxxxxxxxx

Messenger: valentinorfila@xxxxxxxxxxx

Skype: valentinorfila
           valentinorfila@xxxxxxxxx
***************************************************************************
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe