Below is the code I used in order to upload files into a directory. It works fine. My main question is:
move_uploaded_file() is the one that saves t
You can Try this,
$newfilename= date('dmYHis').str_replace(" ", "", basename($_FILES["file"]["name"])); move_uploaded_file($_FILES["file"]["tmp_name"], "../img/imageDirectory/" . $newfilename);