PHP: fsockopen - Manual - PHP: Hypertext Preprocessor
When you're connecting through a proxy server you can't rely on fsockopen returning false to indicate that the connection has failed. (This also applies to fgets and fwrite.) To check whether the proxy succeeded in contacting the real target host, you nee...