+ Reply to Thread
Results 1 to 5 of 5

Thread: How conect my datbase postgresql??

  1. #1
    abisistemas is offline x10Hosting Member abisistemas is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    14

    How conect my datbase postgresql??

    please how conect my postgresql in this domain.


    Thanks.

  2. #2
    xadrieth is offline x10Hosting Member xadrieth is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    62

    Re: How conect my datbase postgresql??

    You need to use the pg_connect function:
    http://php.net/pg_connect

    like so:
    PHP Code:
    pg_connect('host=localhost dbname=PGSQL_DB_NAME user=PGSQL_DB_USER password=PGSQL_DB_PASS');

    Example:
    $pg pg_connect('host=localhost dbname=xadrieth_pgsql user=xadrieth_pg password=fluffykins'); 
    Have the pg_connect be assinged under a variable, it's more useful.
    Last edited by xadrieth; 09-29-2009 at 08:10 PM.

  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: How conect my datbase postgresql??

    However, you must first create a PgSQL database using cPanel.

    Click on PostGreSQL Database Wizard, and follow the steps.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    abisistemas is offline x10Hosting Member abisistemas is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    14

    Re: How conect my datbase postgresql??

    Thank you. Frinds.
    Edit:
    What is the best version of Linux Fedora, Solaris, Ubuntu??
    I need multiuser operating system..

    Thanks.
    Last edited by abisistemas; 10-05-2009 at 11:43 AM. Reason: Automerged Doublepost

  5. #5
    xadrieth is offline x10Hosting Member xadrieth is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    62

    Re: How conect my datbase postgresql??

    uBuntu is really friendly, I'm not sure about Fedora.

    Solaris isn't Linux, but it's still in the Unix (*nix) family.

+ Reply to Thread

Similar Threads

  1. MySQL vs PostgreSQL
    By vol7ron in forum Computers & Technology
    Replies: 9
    Last Post: 11-19-2009, 06:03 PM
  2. PHP PostgreSQL database backup.
    By javilla in forum Programming Help
    Replies: 2
    Last Post: 05-14-2009, 04:23 AM
  3. PostgreSQL persistent connection without password
    By javilla in forum Programming Help
    Replies: 4
    Last Post: 05-13-2009, 06:28 PM
  4. PostGreSQl Developer needed!
    By xav0989 in forum Programming Help
    Replies: 0
    Last Post: 03-24-2009, 05:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers