1.3 Security, 1.3Security_PHP Tutorial

WBOY
Release: 2016-07-13 09:44:47
Original
892 people have browsed it

1.3 Security, 1.3Security

Security issues involve many aspects. Here we will record the file permissions issue. These are the basics, just for review.

File Permissions

 <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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1048727.htmlTechArticle1.3 Security, 1.3Security Security issues involve many aspects. File permission issues are recorded here. These are the basics. , as a review. File permissions Generally speaking, directory permissions are...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!