file_get_contents() 失败将返回 FALSE
if(!file_get_contents(url)){
  echo '获取失败';
  return false;
}