Unanswered: php to access serial port and place data in Mysql
php to access serial port and place data in Mysql.
How would I do this?
I have a UNIX box that is running an industrial vision system and on the serial port it sends whatever ASCII characters it sees followed by <CR> and starts the process again on a valid read from the camera.
What I want to do is to get that string <50char.and place it in a MySQL database on a windoze machine via the RS232 cable.
In doing that I want there to have a unique_ID assigned to the database entry along with a TIMESTAMP for every read, so I imagined that the <CR> would trigger some kind of process that formed the insert statements.
example strings 00000000<CR>
You're looking at the wrong thing to do the job. PHP is ment for the internet and web sites, not for machines that run independently. If you dont know any other code besides PHP consiter using c to to the job, much of the syntax is the same. Best of Luck!