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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
- change ownership to the apache user (either apache, www-date or http, depending on OS).
- modify permission,
chmod 700
orchmod 750