Home > php教程 > php手册 > body text

1.3 Security,1.3Security

WBOY
Release: 2016-06-13 08:56:03
Original
1097 people have browsed it

1.3 Security,1.3Security

安全问题涉及到很多方面此处就记录下文件权限问题,这都是基础,当做复习一下。

文件权限

 <p>一般来说 <p>目录权限为755 <p>PHP files: 600                         (如果你是个偏执狂,就设置400) <p>HTML and image files: 644   (如果你是个偏执狂,就设置444) <p>如果文件服务器需要写入权限则其他人要设置权限7,比如cache目录。 <p>在模板安装的时候templetes需要更高的权限,但是安装之后要恢复到合适的权限。 <p>r:   对文件而言是可读,对目录是可浏览 <p>w:  对文件是可写入, 对目录是可新建,删除,修改,移动 <p>x:   对文件是可执行,对目录是可进入</p>
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template