2011-05-29 78 views

回答

6

使用上下文(通过stream_context_create)和ignore_errors context option,认为 “取甚至失败状态代码内容”:

$options = array(
    'http' => array(
     'ignore_errors' => true, 
    ), 
); 

$context = stream_context_create($options); 

$handle = fopen('http://url/', 'r', false, $context); 
相关问题