+ 1
How do I upload a file to a specific user folder using php?
I want to upload a file to a specific user folder using php. I have three php files; create.php, update.pho and uploadfile.php. I already did the part where when a user is created in create.php a new folder (named user) is created in the studentsfiles folder for that particular new student created. Now when I try to update the student details in update.php, there is a section for me to upload the students files. I'd like to upload the student files in their respective folders. I need your assistance in uploading the files to the respective student folders rather then to the general studentsfiles folder.
2 Réponses
0
So each user has folder in which you want upload files?
Then I would recomend foreach loop And inside it move_upload function.
0
Václav Dostál thank you, I managed to get it done already