调用php的curl库进行socket通讯,它支持ssl的。pear库好像有例子,先去看看curl内容,地址是http://www.php.net/manual/en/ref.curl.php

解决方案 »

  1.   

    fsockopen
    As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the hostname with either 'ssl://' or 'tls://' to use an SSL or TLS client connection over TCP/IP to connect to the remote host.
      

  2.   

    楼上的兄弟 这个成功过没?
    我早测试过了,在WIN2K+APACHE+PHP5+MYSQL OPENSSL 加载了 
    我使用OPENSSL函数在本地进行SSL数据加密,使用证书可以正确解密,但是连接另外的服务器还是不行的哟