企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
``` /* * 判断远程文件是否存在 */ function remote_file_exists($url) { $executeTime = ini_get('max_execution_time'); ini_set('max_execution_time', 0); $headers = @get_headers($url); ini_set('max_execution_time', $executeTime); if ($headers) { $head = explode(' ', $headers[0]); if ( !empty($head[1]) && intval($head[1]) < 400) return true; } return false; } ```