PHP文件权限 [英] PHP file permissions

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

问题描述

如何设置文件权限,以允许 PHP程序读写,但不被公众读取.当我设置读取权限时,它拒绝文件的PHP .

How can I set permissions of a file to let a PHP program read and write but not be read by the public. When I set read permissions it denies PHP to the files.

推荐答案

  • 将所有权更改为apache用户(apache,www-date或http,具体取决于操作系统).
  • 修改权限,chmod 700chmod 750
    • change ownership to the apache user (either apache, www-date or http, depending on OS).
    • modify permission, chmod 700 or chmod 750
    • 这篇关于PHP文件权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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