Users upload their photos on my site (for avatars), but I do not know how to give them back when the user leaves a comment. How to implement it? Somehow it is not tricky .. please, so that you can sort it out.
Source: https://ru.stackoverflow.com/questions/980053/
All Articles
if (move_uploaded_file($_FILES['picture']['tmp_name'], $uploadfile)) {
<= here$uploadfile
is a new file name, how to change it, so the file will be called .. And about output .. Well, here it is very simple .. If you name the files using the user id then the base is not needed, but you just need to find the picture on theпути/к_файлу/[user_id].png
.. Id find the user in the base and substitute it on the way. Profit - InDevX