如果文件超过5mb,如何阻止远程文件下载文件?如果我在转移时停止它,文件是否会保存在某个其他临时目录或内存中?我怎么会知道?这是我目前的代码:
$url = 'http://www.spacetelescope.org/static/archives/images/large/heic0601a.jpg';
$file = '../temp/test.jpg';
file_put_contents($file, file_get_contents($url));
Run Code Online (Sandbox Code Playgroud) php ×1