I am running a dedicated IIS on Server 2012. I am trying to get a PHP script running on an external web site that will use the file function to connect to my IIS server. However, the script fails with error:-
idge) [function.file]: failed to open stream: Connection refused in /home/myaccount/public_htm
on line 2
The failing line reads:-
$string = file("http://<my-ip-address:8080/myfile.asp?name=roybridge");
If I type that full URL into my browser, then it works properly. If I remove :8080 from the URL in my test PHP file, then it works (but I need it to work on port 8080)
Any ideas please?