I have a website at
/var/www/html, and i have a PHP script which uploads user selected image to
/var/www/html/images. The script will not work unless I change permissions on on
/images folder to write.
What would be the best option to allow the script to have write permissions on this folder? Or, it's something better done via PHP code, so that the PHP code opens the folder to writing everytime it's executed?
Or, maybe put the images folder outside /var/www and give it 777 permission there? (Or that's also not good)