I have a script that reads all the files in an online directory and displays them on a web page. The script will not show files that are prefixed with a dot. (example '.[login to view URL]' will not show)
I have a second upload script that allows the user to continue to upload the same file name and have it automatically saved with a new number increment. (example file '[login to view URL]' uploaded again becomes '[login to view URL]', '[login to view URL]' etc.)
My client wants to upload 20 versions of a file a month but only have the latest version visible in the directory.
So I want to have them upload .[login to view URL] and have it increment itself as a hidden file. Each time it is incremented I want to create a second file without the dot that is visible in the directory. I also want to "Unset"/delete the former visible version from the directory.
The above concept will keep the version count files as hidden files and display the latest version as a visible file.
I have the upload script working creating the hidden version files. I need someone to help create the array of the hidden file and visible file, upload them, and delete the prior visible version file from the directory.