什么卷曲版本是PHP Windows二进制运行

时间:2011-12-16 03:57:55

标签: php windows curl

如何在不将其安装到正常工作的服务器上的情况下找出特定Windows二进制文件正在运行的curl版本?

例如,PHP 5.3.5在Ubuntu上有curl 7.19.10,如何确认相同的curl版本将与PHP 5.3.5的Windows二进制文件捆绑在一起?

2 个答案:

答案 0 :(得分:2)

http://www.php.net/manual/en/function.curl-version.php

curl_version();

返回

Array
(
    [version_number] => 464135
    [age] => 3
    [features] => 2749
    [ssl_version_number] => 0
    [version] => 7.21.7
    [host] => i386-pc-win32
    [ssl_version] => OpenSSL/1.0.0e
    [libz_version] => 1.2.5
    [protocols] => Array
        (
            [0] => dict
            [1] => file
            [2] => ftp
            [3] => ftps
            [4] => gopher
            [5] => http
            [6] => https
            [7] => imap
            [8] => imaps
            [9] => ldap
            [10] => pop3
            [11] => pop3s
            [12] => rtsp
            [13] => scp
            [14] => sftp
            [15] => smtp
            [16] => smtps
            [17] => telnet
            [18] => tftp
        )
)

答案 1 :(得分:1)

这是使用phpinfo()打印的信息的一部分。只需使用<?php echo phpinfo();创建一个页面,就可以设置。