On Sat, 2006-04-01 at 19:46 +0100, Wayne Stallwood wrote:
I am trying to write some data to a device node in php..It works fine, however I am having trouble handling errors.
That's no unusual when you use the buffered I/O !
For devices I much prefer to use open/read/write where you are closer to the device and can get more reliable error indications.
You also probably want to try and open it in non-blocking mode so that the call to open can't block.
Peter