Home >Backend Development >PHP Tutorial > apache 如何禁止操作根目录以外的位置

apache 如何禁止操作根目录以外的位置

WBOY
WBOYOriginal
2016-06-13 12:43:11925browse

apache 怎么禁止操作根目录以外的位置
怎么设置apache 让程序只能操作本程序根目录以内的文件。现在用file_put_contents之类的文件操作方法可以操作根目录以外的文件。

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