Grabbing CSV over cURL in PHP

前端 未结 4 938
别跟我提以往
别跟我提以往 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:26

    By default curl_exec returns a boolean. You need to set the CURLOPT_RETURNTRANSFER option to 1 or true to get the transfer payload returned.

提交回复
热议问题