I configured my Raspberry Pi as a LAMP server.
I have LEDs connected to my RP and can control them with c/c++ programs.
Now I want to built a web interface to control the colors of my LEDs.
For my first attempt I used JQuery to send different commands to a PHP script that would execute a program with the color as a parameter.
This doesn't seems to be the best solution, because I'm pretty limited on any effects I can make.
So my second idea was to use sockets to send information to my program.
This means my ledControler program listens for incoming commands and executes them.