I'm running an IIS 6 server on a Win2k3 box, and everything has been functional so far. However, I recently installed PHP 5 as a module for IIS, and I'm having trouble making a socket connection for a site I'm building.
I need to generate a socket connection to an authentication server with two GET parameters. The server should respond with a short XML snippet. When I enter the full URL directly into my browser, i.e.
I get the XML response sent to my browser with no trouble. That is, I'm certain that the server responds to a standard GET request with the parameters I'm passing.
However, when I try to open a socket from within my PHP script to read the server response contents, I can't get the socket to open. I'm using ready-built code that apparently works fine (on an Apache server), and I've tried about every method PHP has for getting this server response (fsocketopen(), curl, fopen(), get_file_contents()), but to no avail. I'm really starting to think that the problem is in a security setting or something in either IIS or on WinS2k3. No matter what I try in PHP, I simply can't get a socket opened to this authentication server.
Is there a security setting/rights assignment I need to have set a certain way to allow the socket to be created?