Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    4

    Red face connecting to DB issue URGENT help (please)

    hey i have a project and i am trying to run some php script on my website and connect it to my home postgis db.

    I wanted to do this all locally first, but i could not get php running on my system locally.


    So pleasee...

    how do i connect to my HOME behind Verizon fios line Database.

    <?php
    $myServer = "localhost";
    $myUser = "postgres";
    $myPass = "your_password";
    $myDB = "postgis";



    if this is the standard connection for a database on a website, how would i edit it to connect to my home Desktop?

    the site im trying to connect from with the script is http://findariver.com/emergencyapp/index2.php


    User postgress
    pass blabla
    port 5432
    dbname postgis

    My host is 127.0.0.1:5432

    Computer ip is 192.168.1.2
    IPv4 DNS server 71.243.0.12 <--- not sure if this is needed.

    So how would i point the database to enter my network, and then the computer?

    I have searched online but seem to find little on this, it should be quite simple. But i just need to finish this project by tomorrow and am really stuck.



    if anyone knows please let me know asap

  2. #2
    Join Date
    May 2010
    Posts
    4
    i just went to displaymyhostname.com and it shows

    pool-108-7-60-187.bstbna.fios.verizon.net

    would i need to use this?

  3. #3
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697
    You need to forward the necessary ports on your router.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •