How to check if curl is enabled or disabled

前端 未结 7 1451
孤城傲影
孤城傲影 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');
    }
    

提交回复
热议问题