21,886
社区成员
发帖
与我相关
我的任务
分享
$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("$your_url", false, $context);
[/quote]
有加的[/quote]
有没有可能是dns慢?
ping your_url
得到 url_ip
试试呢?
$context = stream_context_create(array('http' => array('header'=>'Host: $your_url\r\n')));
file_get_contents("$url_ip", false, $context);
[/quote]
同一台电脑呀,要慢不是一起慢么?都用的一个url
$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("$your_url", false, $context);
[/quote]
有加的[/quote]
有没有可能是dns慢?
ping your_url
得到 url_ip
试试呢?
$context = stream_context_create(array('http' => array('header'=>'Host: $your_url\r\n')));
file_get_contents("$url_ip", false, $context);
$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("$your_url", false, $context);
[/quote]
有加的
$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("$your_url", false, $context);