PHP的文件执行权限 [英] File permissions for PHP execute

查看:105
本文介绍了PHP的文件执行权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置godaddy文件权限,但我不知道要为PHP文件设置什么权限.他们应该能够读取,写入和执行影响SQL Server的内容.我应该选择哪些选项,默认权限如下图所示.

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.

推荐答案

PHP文件应仅对全部3个组具有EXECUTE权限 php文件被执行而不是读取,例如html文件 如果您保留阅读状态,人们可以使用一些棘手的方法查看您的实际php代码并窃取它,因此请不要在.php文件中保留阅读状态

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

这篇关于PHP的文件执行权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆