i finally got the right answer.. the wiringpi wrapper for php doesn't work. it is because the wiringpi.ini is not chmod 777. all i need is to change its privileges
sudo chmod 777 wiringpi.inithen reload php5-fpm, restart it
reload nginx , restart it
It's good to go. Functionally.
本文讨论了在使用WiringPi PHP Wrapper时遇到的问题,即配置文件wiringpi.ini未设置适当的权限。文章提供了通过`sudo chmod 777 wiringpi.ini`来解决问题的方法,并建议重新加载PHP5-fpm和重启服务,以及重启nginx以确保更改生效。

被折叠的 条评论
为什么被折叠?



