Jump to content

New Take : Com Ports Windows machines with Linux served PHP


Kurrel

Recommended Posts

Hi everyone,

 

I built a nifty code set that took a reading from a scanner and fed it into a database... this worked great, until I found the server was Linux (Ubuntu) and the code I was using would not co-operate on that.

 

Is there any way to open the browser and click a button, having the local machine access it's com port 1 and read data from the device connected before feeding that back to the central database?

 

Essentially, a web-driven monitoring system.

I found that it might be possible to use fopen to access the port directly, but I don't think my linux knowledge is up to the task.  I get the following :

 

"Warning: fopen(/dev/ttyS1) [function.fopen]: failed to open stream: Permission denied in /var/www/LinuxTest/tindex.php on line 89"

 

It's progress, and I'm trying to find out if there's further headway here or if I'm going the wrong way.

 

Any help appreciated!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.