Is it possible in PHP ???

Discussion in 'PHP' started by mahdi_fci3, Aug 29, 2010.

  1. #1
    Hi all,
    I divided a system that I created into two part, one part that using internet and other part that using local. my first question is can I retreive some data from specific table of the internet part to use as a local, my second question is how to use a localhost from another PC.

    Thanks 4 ur Time.
     
    mahdi_fci3, Aug 29, 2010 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    If your server allows remote connections, then you can connect to it from your local computer.

    Instead of localhost, type the IP of the computer which is running the server.
     
    nico_swd, Aug 29, 2010 IP
  3. mahdi_fci3

    mahdi_fci3 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank u, it is working the second part.
    but who to check if my server allows remote connections or not??
     
    Last edited: Aug 29, 2010
    mahdi_fci3, Aug 29, 2010 IP
  4. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #4
    It seems that you are on a router. Go to:

    http://www.whatismyip.com/

    Use that IP instead of the 192.168.0.3

    There is an extra step you need to do, login in to your router setup page and look for the DMZ option, enable it and set it to be your computer IP (192.168.0.3).

    Basically the DMZ lets the world know that if someone accesses your public IP (the one you get from whatismyip) to redirect it to your local IP (192.168.0.3).
     
    ThePHPMaster, Aug 29, 2010 IP
  5. mahdi_fci3

    mahdi_fci3 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    but how to check if my server allows remote connections or not?
    and if it allows, could you tell me how to connect remotly from localhost to a server ??

    thanks 4 ur time.
     
    mahdi_fci3, Sep 1, 2010 IP