I've reading a number of different threads, and wondering what the best (and simplest) way of accessing the GPIO stuff is in PHP.
From what I can see the biggest problem with PHP and GPIO is that in order to access the GPIO stuff you have to be running as root, which is not a great idea as far as security is concerned.
A) I've seen one thread which is running shell commands from the PHP page (http://www.raspberrypi.org/phpBB3/viewt ... =34&t=7252) but I have tried to follow what they have done but its not worked ... or more accurately i haven't been able to follow what they have done.
B) Get the PHP page to write a flag where it can, and then have a separate programme running as root that acts on this flag (http://www.instructables.com/id/Control ... r-t/#step1)
C) I have had some success using the GPIO through Python (running as root), is it possible to run the relevant Python programme from the PHP page? I have tried this but have not had much luck, not getting any error messages, just doesn't seem to be running the Python (I think its a root issue again)
I've had a bit of a tinker and not got any of them to work, I was a complete linux newbie until I got Raspberry Pi so still learning, I don't think I have gotten my head around all the commands, so if someone is able to offer me help please don't just tell me to "Alter the php files security so that it runs under user xxxx" instead it would be brilliant if you could mention the files, commands and syntax that I would need to use.
I'm running the Debian Squeeze distribution of Linux btw
Many thanks from anyone that is able to offer a bit of help