File Upload Manager
This program displays a menu to select the file in your system, a check box, and Upload button.
Once when the user clicks the upload button, the program checks the file for existence, and undergoes series of tests as described in the plan.
Now lets look upon the code snippets...
This variable is the destination folder path.
This path is given for a Windows based system. Please change your destination folder accordingly.
This function is called from the main program when the program encounters file exists and difference in size, date or time. This function will generate a new file name and return to the main function.
WHERE file_name LIKE '$file_name%'
$Last_Version = $Last_Version > $ver ? $Last_Version : $ver;