简体   繁体   中英

Do imagejpeg(), imagepng() and imagegif() replace existent files?

The title explains it quite well, do imagejpeg() , imagepng() and imagegif() replace an existent file if I use the 2nd parameter of these functions?

The second parameter is the location where you want to store the created image, but what if there is already a file with the name I chose? How do these functions handle those situations?

Thanks.

是的,它们将覆盖指定路径上的现有文件(如果已存在)。

是的,我自己测试,如果你使用这些功能的第二个参数,它将替换现有的文件!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM