Jump to content

Does imagejpeg() overwrite?


.Stealth

Recommended Posts

As title, does imagejpeg() overwrite files that already exist with the same filename?

 

I'm writing a gallery script that creates thumbnails of images in a folder. I don't want the script re-making the thumbnails for the images every time the script runs. Do i need to check if the files exist or not in order to create the thumbs or not? Or will PHP ignore it if it exists?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/203584-does-imagejpeg-overwrite/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.