I have a Folder in that i have sub folders like excel_files, excel_files_backup , images etc and files like excel2.php , get_mail.php etc .
In excel_files folder having excel files
and excel_files_backup is an empty folder .
iam uploading excel files in excel_files folder to database after inserting iam unlinking the files in excel_files. so the excel_files folder become empty after inserting data into database. and iam downloading new files from mail and dumping into excel_file folder so every time the folder will become empty after inserting into database and when new mail received the file will downloaded to excel_file folder.
now my need is i want to copy excel files in excel_files folder to excel_files_backup by using php script. so that every time when i run the excel2.php the files in the excel_files should be copied into excel_files_folder and then inserted to database and then excel_files folder get deleted.
please give me suggestion(script) for doing this.