I guess this program needs php expert.
I need a program that will takes directory path as input and zip that directory and saves in target directory. The target directory also will be inputed. The target file name should also be an input. If the target file name already exists, it should rename the existing file name with current date and time as prefix _ and move to the backup directory.
For example if there is [url removed, login to view] already exists, then the program should rename it as [url removed, login to view]
Also need an option to download the file instead of zip and save.
Please find attached image for clear idea.
All the expected errors like directory/file name does not exists etc.. should be handled.