我试图使用PHP CURL获取RTMP url,但不幸的是php curl在libcurl中不支持或禁用协议"rtmp“。
我在CentOS6.7VPS上安装了rtmpdump并将CURL升级到了7.47.1最新的稳定版本。下面是curl -V shell命令的响应
curl 7.47.1 (x86_64-pc-linux-gnu) libcurl/7.47.1 OpenSSL/1.0.1e zlib/1.2.3 librtmp/2.3协议: dict文件ftp ftps gopher http https imap imaps pop3 pop3s rtmp rtsp smtps telnet tftp功能: IPv6大文件NTLM NTLM_WB SSL libz UnixSockets
它清楚地显示了对rtmp协议的支持,但是当我检查phpinfo()输出时,它列出了除rtmp之外的以下curl下的所有协议,
协议dict,pop3s,ftp,ftp,gopher,http,https,imap,imaps,ldap,ldap,pop3,pop3s,rtsp,scp,sftp,smb,smtp,smtps,telnet,tftp
我已经尝试了一切,升级了curl,用rtmplib支持重新构建curl,将php升级到5.6,但是还没有取得任何成功。此外,phpinfo还显示了正确的CURL版本,为7.47.1。
如能在这方面提供任何帮助,我们将不胜感激。
发布于 2016-03-21 13:15:48
您需要用新安装的curl库重新构建php curl扩展。
https://serverfault.com/questions/765037
复制相似问题