I\'ve a submit discussion form with image upload in my website. Now, I want to upload a unique file name when the user submits their image so that I can show the result of a
You could use a timestamp in the date, that way you won't get the same filename/time twice.
Not certain exactly what your code looks like but you could do something like this:
$filename = uniqid() . $orig_filename;
Read this documentation on the PHP docs about uniqid for more information. It uses the datetime to output a unique identifier string.