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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.