【发布时间】:2016-09-13 17:09:14
【问题描述】:
我收到此错误消息:get_headers failed to open stream: Connection timeout
代码如下:
$file_headers = @get_headers('http://www.example.fr');
print_r(get_headers('http://www.example.fr'));
if ( strpos( $file_headers[0], "200" )) {
echo 'done';
} else {
echo 'error';
}
【问题讨论】:
标签: php timeout get-headers