Kurrel Posted November 12, 2007 Share Posted November 12, 2007 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. Quote Link to comment Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.