标签: php ubuntu hosts
动态地我想编辑和更新我的(/etc/hosts) hosts文件以使用php
(/etc/hosts)
我在php中尝试过这段代码
exec ("sudo chmod 777 /etc/hosts"); fopen("/etc/hosts", "r")
我在php
Warning: fopen(/etc/hosts): failed to open stream: