Socket transport “ssl” in PHP not enabled

前端 未结 7 2160
醉梦人生
醉梦人生 2020-11-27 03:15

I\'m having trouble enabling the socket transport \"ssl\" in PHP. When I run my script, I get the error:

Warning: fsockopen() [function.fsockopen]:

7条回答
  •  旧巷少年郎
    2020-11-27 03:28

    Success!

    After checking the log files and making sure the permissions on php_openssl.dll were correct, I googled the warning and found more things to try.

    So I:

    • added C:\PHP\ext to the Windows path
    • added libeay32.dll and ssleay32.dll to C:\WINDOWS\system32\inetsrv
    • rebooted the server

    I'm not sure which of these fixed my problem, but it's definately fixed now! :)

    I found these things to try on this page: http://php.net/manual/en/install.windows.extensions.php

    Thanks for your help!

提交回复
热议问题