一般使用curl获取,以前可以用file_get_contents获取$res = file_get_contents('url地址或文件'); // 得到结果if ($res != 'not') { // 弹窗需要使用js echo "";}