How to avoid the image replacement while saving images to a folder via PHP

1 replies
  • WEB DESIGN
  • |
I am developing a website which need contineous uploading of images to a folder.i want if the image already exists in the folder the name of the new image that i am going to upload can change autometically.

i mean if there is a image named car.jpg in the folder and i again upalod the image of car.jpg the 2nd image renamed and save as car(2).jpg what to do to achieve this.. regard
#avoid #folder #image #images #php #replacement #saving
  • Profile picture of the author KirkMcD
    What do you want it to do instead?
    Replace the original? Well then, delete it first.
    For both to exist? Well that will take a little bit of work on your part, because you will need to track it.
    {{ DiscussionBoard.errors[3912629].message }}

Trending Topics