If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > connecting to DB issue URGENT help (please)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-10-10, 13:57
cenkaetaya cenkaetaya is offline
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old 05-10-10, 14:35
cenkaetaya cenkaetaya is offline
Registered User
 
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?
Reply With Quote
  #3 (permalink)  
Old 05-12-10, 09:37
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
You need to forward the necessary ports on your router.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On