I'm trying to build a local PHP server using XAMPP.
When I'm trying to run one of the PHP files, I get an error about the
fopen command in the file.
From a quick search in the web, I've seen that in order to solve it I need to run this command on terminal:
sudo chmod 777 file.extension
On the comments to this article, I've seen that I should use 760 instead of 777.
My question is what every chmod command can do? Can it be a security problem? What do you recommend me to do?