I've encountered a situation trying to include a remote file from a server that's using a non-standard port for HTTP traffic. Instead of 80, it's using 49000. No big deal, I thought. Just specify the port number after the IP address as is usually done. So, the include looks something like:
include( 'http://www.someserver.com:49000/thefile.html' );
It doesn't work. The connection times out. The file contents are never returned. I know that the port is valid, because if I use that exact same URL in a different context - e.g. a hyperlink - then the file contents are displayed just fine.
I can find nothing about port restrictions on the PHP site with regard to the include function. Could this be some restriction put in place by my hosting service? Anyone have any insight?
Thanks much,
Steve