Good morning, since the file has been uploaded to the server (xammp) how can I recover both the path and the name of the file once it has already been processed by
move_uploaded_file($temporary_file_name, $path . $file_name);
once this line is executed, the file “uploaded/loaded” remains in the indicated path and with a new name that has been previously modified, now the question is how do I get that data out of the file that has just been saved in $path and only to that particular file that was uploaded at that moment, in an external post I found a function that works excellently but brings me ALL the files that can be found in that folder this is the code
The detail is that the folder indicated in $path=files/temp is a kind of temporary repository, from there it would still have to be uploaded to its destination folder (but that’s another story…).
any idea is welcome
Cheers