我收到此错误消息: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';
}