Make cURL write data as it receives it

前端 未结 4 1711
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 02:58

I have the following php code which I found here:

function download_xml()
{
    $url = \'http://tv.sygko.net/tv.xml\';

    $ch = curl_init($url);
    $timeo         


        
4条回答
  •  借酒劲吻你
    2021-01-07 03:42

    Your timeout is set to 5 seconds which might be too short depending on the file size of the document. Try increasing it to 10-15 just to make sure it has enough time to complete the transfer.

提交回复
热议问题