Make cURL write data as it receives it

前端 未结 4 1757
隐瞒了意图╮
隐瞒了意图╮ 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:35

    curl_setopt the CURLOPT_FILE - The file that the transfer should be written to. The default is STDOUT (the browser window)

    http://us2.php.net/manual/en/function.curl-setopt.php

提交回复
热议问题