Forum Moderators: coopster

Message Too Old, No Replies

open socket function

         

DenRomano

3:04 pm on Jun 27, 2005 (gmt 0)

10+ Year Member



I have a app where my php programming files and process is done on a server located at a webhosting company. Inside our office we have a local area network that has an windows XP computer that runs a app by our credit card processing company that we can post credit card transactions to get them authorized.

We would like to create a interface between the two. I can have php create a simple http post form that will post to our "local server" and it does process the request BUT when the reply comes back it is just a blank page. I talked to the credit card processing company and they said I need to open a socket to receive the text to figure out if the credit card was accepted or declined.

I read up on fsocketopen and this would do it but I have 1 problem. when I use fsocketopen since it is on the "outside" server it can not see our "local" server. In other words it can not see our inside app.

My first thoughts are that I will not be able to use php for this as php is server side based and anything sent to it will not be able to my "local" server.

Any ideas? What other "local" programming langages can I use (like javascript) to open a socket?

THanks

Dennis

lobo235

3:21 pm on Jun 27, 2005 (gmt 0)

10+ Year Member



The idea here would be to get your local computer out on your DMZ so it can be accessed by your webhosting computer. You will need a public IP address that routes to your local computer.