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.
Yes, they will overwrite an existing file at the specified path, if it already exists.
Yes, I test it by myself, it will replace the existent file if you use the 2nd parameter of these functions !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With