Home >Backend Development >PHP Tutorial > php怎么读取linux下面的etc下面的文件

php怎么读取linux下面的etc下面的文件

WBOY
WBOYOriginal
2016-06-13 13:45:32892browse

php如何读取linux下面的etc下面的文件
如题

------解决方案--------------------
这么简单、、、、
------解决方案--------------------
echo file_get_contents('/etc/passwd');
------解决方案--------------------
只要帐号有权限就可以直接读取.路径写对即可

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