File permissions for PHP execute

自作多情 提交于 2019-12-11 20:24:26

问题


I am in the process of setting up the godaddy file permissions and I do not know what permissions to set for my PHP files. They should be able to read, write and execute effecting the SQL server. Which options should I select, the default permissions are shown in the image below.


回答1:


PHP files should only have the EXECUTE permission for all 3 groups php files are executed, not read, like html files for example if you leave read, people can with some tricky methods view your actual php code and steal it, so don't leave read on .php files



来源:https://stackoverflow.com/questions/28051528/file-permissions-for-php-execute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!