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

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

WBOY
Release: 2016-06-13 13:45:32
Original
890 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template