Fatal error curl_reset() undefined why?

前端 未结 4 1387
别那么骄傲
别那么骄傲 2020-12-17 15:18

I am using curl to request another site for getting data. My code having curl_reset() funciton is working well at localhost, but when i have updated my code to

4条回答
  •  悲&欢浪女
    2020-12-17 16:01

    Requires no PHP version updating.

    if (!function_exists('curl_reset'))
    {
        function curl_reset(&$ch)
        {
            $ch = curl_init();
        }
    }
    

提交回复
热议问题