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

by 1 replies
2
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
#website design #avoid #folder #image #images #php #replacement #saving
  • 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.

Next Topics on Trending Feed

  • 2

    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