Hi.
I have some problems with uploading files and permissions.
My upload directory is /opt/lampp/htdocs/projects/animehobbyist/images
When the file is uploaded there the permissions are set to user can read and write, group and others are dinied access. And user is set to nobody, and group is set to nogroup. Right now I have to be logged in as root in order to do anything with that file. Anyway I can fix this?
I want those images be accessible to the user, so that I can display them on an other page.
Second in order for file to be uploaded there I had to give read and write permission to user, group and others on images folder. Anyway to make it so that I can upload there with only the user permissions set to read and write?
I gues I can change the permissions with
chmod("$directory", 0755);
Which allows me to view the file, but the user is stil set to nobody. What exactly does that implies?
Thank You.