control I/O from a browser?

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

Reply to
Rushi
Loading thread data ...

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
 Click to see the full signature
Reply to
Kurt Harders

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.

Reply to
Clark Pope

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

Reply to
Rushi

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

Reply to
Bob Smith

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.