ronanguilloux / php-gpio

A PHP library to play with the Raspberry PI's GPIO pins
MIT License
270 stars 59 forks source link

Permissions for Exec #3

Closed mbalderas closed 11 years ago

mbalderas commented 11 years ago

Hi,

I have been dealing with the Exec command, and the only way that worked for me was exec('sudo php blinker 17 20000');

It needed the php command, is this a permissions issue? It works fine localy, but through the network it doesn't.

ronanguilloux commented 11 years ago

Hello mbalderas,

Can you please elaborate on this: What does "throught the network" means : via ssh ? or when you implement php-gpio in a php-based website ? Have you any detailled examples (pieces of code to share with us), in order to to help you ?

ronanguilloux commented 11 years ago

Hello there,

I tkink the php-gpio-web project, that uses php-gpio lib, well explains how you can implement php-gpio in a website, the simple way.