title: PHP fsockopen() fails, but telnet works
body: <p>I am trying to get Sphinx Search working under Windows7.  So far everything is great except PHP cannot connect to the running service.</p>
  <p>ONLY TELNET WORKS:</p>
  <blockquote>
  <p>telnet localhost 3312</p>
  <p>php: fsockopen(&quot;localhost&quot;, 3312, $errno, $errstr, 30);</p>
  </blockquote>
  <p>I decided to test some other ports...</p>
  <p>BOTH WORK:</p>
  <blockquote>
  <p>telnet localhost 80</p>
  <p>php: fsockopen(&quot;localhost&quot;, 80, $errno, $errstr, 30);</p>
  </blockquote>
  <p>ONLY TELNET WORKS:</p>
  <blockquote>
  <p>telnet localhost 3306</p>
  <p>php: fsockopen(&quot;localhost&quot;, 3306, $errno, $errstr, 30);</p>
  </blockquote>
  <p>Could the reason have something to do with the port being binary data on 3312 and 3306?</p>