具体实现方法如下:
$file = "https://www.jb51.net/demo/file_exists.zip"; $fileExists = @file_get_contents($file,null,null,-1,1) ? true : false; if($fileExists){ echo "File Exists!"; }else{ echo "Sorry, we couldn't find the file."; }
上一篇:使用PHP怎么实现一个远程下载文件功能
下一篇:使用php怎么对UBB代码进行过滤