Search the Community
Showing results for tags 'c++'.
Found 3 results
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. For this I used Websockets, but since I didn't use a library for my c++ program, it was very painfull to implement the whole WebSocket RFC. Another idea was to use PHP sockets. But I didn't test it out. My question is, am doing this completely wrong? Is there a simpler preferred way to do this?
HelloI'm just starting working with web pages and I have an assinment for work to make web application (if you could call it that way) which has to take .txt file from one server then sort data which is in it and then display it on the web page. The data looks like this:2013.5.14 00:03:22;"555000000000000000";22;"ANSWERED". I have to take data lines only from certain date, delete numers which repeat, count their call duration, average call duration and display it on the web page. My question is can make such sorting with Php ? Or can I run programm in server, on click of the button on web page, which would sort it and put it on .txt file from which the page would read it and then display it? Or can I put c++ code inside the web page ? Thank you for any help!