2011-05-29 97 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);