Home >Backend Development >PHP Tutorial > apache 如何设置文件夹的读写权限

apache 如何设置文件夹的读写权限

WBOY
WBOYOriginal
2016-06-13 13:30:511093browse

apache 怎么设置文件夹的读写权限?
我有个PHP的项目,为了安全 有些文件夹要设为只读的,有些我设为可写的。请问各位大侠怎么在 httpd.conf这个文件里面配制啊!

------解决方案--------------------
用服务器上用命令修改,或者用php的函数修改~
------解决方案--------------------

PHP code

chmod($file,0777);  //第二个参数为模式代码
<br><font color="#e78608">------解决方案--------------------</font><br>在Linux下可以敲命令行:<br># chmod 0777 /usr/bookdir<br>httpd.conf文件是Apache服务的相关配置信息,你为什么老是要在那里面改呢? <div class="clear">
                 
              
              
        
            </div>
Statement:
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