control I/O from a browser?

Jun 11, 2004 4 Replies

Hi Group,



How can I control I/O from a web browser?



I though I can do it like this.


1) Apache for web server
2) PHP and mySQL
3) Create a data base fields for data I want to pass from browser
4) Write to the data base filed via web page using php or Java applet
5) Read the variables from the database fields with C/C++ program which talks I/O ports


Can any one point me any link I can look at or any better ideas???????????????????



Tnx



Rushi


Hi Rushi,

snipped-for-privacy@iee.org (Rushi) schrieb in news: snipped-for-privacy@posting.google.com:

What kind of IO?

Or some other small server which implem ents the cgi.

OOps. Seems a little bit oversized to me.

Why not reading the ports directly and access them via cgi?

Regards, Kurt

PiN - Präsenz im Netz GITmbH Kurt Harders http://www.pin-gmbh.com

The book at

formatting link
(chapter 12) has an example of what you're talking about. Basically, you write a simple device driver and then call it via cgi.

Thanks guys for showing the way?. I will investigate it???.

Take a look at Run Time Access. It makes variables and arrays of structs in a running program look like tables in a PostgreSQL DB. RTA has both read and write callbacks (umm, "triggers" in DB-speak) so what you want would be really easy.

See the web site:

formatting link
and its live demo:
formatting link
Or look at the most recent issue of LinuxFocus webzine:
formatting link

Bob

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required