开发者

ftp_ssl_connect() unavailable, OpenSSL support is enabled

I need to use ftp_ssl_connect() in a script sometimes instead of ftp_connect(), so I read the requirements on php.net and recompiled with OpenSSL support. phpinfo() shows that it is in fact enabled:

openssl

OpenSSL support         enabled
OpenSSL Library Version OpenSSL 0.9.7e-p1 25 Oct 2004
OpenSSL Header Version   OpenSSL 0.9.7e-p1 25 Oct 2004

Yet the function is still undefined. Not exactly sure where to check next. Any ideas would be greatly a开发者_运维知识库ppreciated. I'm on FreeBSD 6.4 running PHP 5.3.2. Thanks!


My guess is that while you recompiled PHP with OpenSSL support, the FTP extension is a shared object that was not rebuilt.

Make sure you tell the configure script you want to build the FTP extension.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜