Hello
does anaybody know how can i add a line of code that will change the name of the image uploaded to avoid similarity cus then the computer delete and overwrite the old file.
can i add it to the ABVFP ?
can i add the Record_Nr that always increasing ?(and like that it will never be the same)
thanks
*the code
does anaybody know how can i add a line of code that will change the name of the image uploaded to avoid similarity cus then the computer delete and overwrite the old file.
can i add it to the ABVFP ?
can i add the Record_Nr that always increasing ?(and like that it will never be the same)
thanks
*the code
Code:
//--------- Move the files to destination---------------- $nduploadfolder1 = basename($nduploadfolder); for ($i = 0; $i < count($upload_Name); $i++) { if ($upload_Size[$i] < $ndfilesize1 and $upload_Size[$i] >0) { $uploadFile = "$nduploadfolder1/".$upload_Name[$i]; if (!is_dir(dirname($uploadFile))) { @RecursiveMkdir(dirname($uploadFile)); } else { @chmod(dirname($uploadFile), 0777); } @move_uploaded_file( $upload_Temp[$i] , $uploadFile); chmod($uploadFile, 0644); } }
Comment