How to check if curl is enabled or disabled

前端 未结 7 1444
孤城傲影
孤城傲影 2020-11-27 04:07

Possible Duplicate:
Writing a function in php

I\'m using the following code

echo \'Curl: \',          


        
相关标签:
7条回答
  • 2020-11-27 04:42

    Just return your existing check from a function.

    function _isCurl(){
        return function_exists('curl_version');
    }
    
    0 讨论(0)
提交回复
热议问题