Grabbing CSV over cURL in PHP

前端 未结 4 930
别跟我提以往
别跟我提以往 2021-01-17 05:04

Unfortunately, I cannot use either fopen or file_get_contents, so my working script has become a broken one using cURL:

$ch = curl_init();
curl_setopt($ch, C         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-17 05:44

    I believe that curl_exec($ch) will not return a string unless you use curl_setopt($ch,CURLOPT_RETURNTRANSFER,true) first.

提交回复
热议问题