I have a html page that allows users to submit a file.
Below is my web service for saving submitted files. But I dont want move_uploaded_files to overwrite existing files? What should I do? Thank you
$tmpname = $_FILES["image"]["tmp_name"];
$movedname = "submit-img/" . $_POST["category"] . "/" . $_FILES["image"]["name"];
$prevPage = parse_url($_SERVER['HTTP_REFERER']);
move_uploaded_file($tmpname, $movedname);