Posted by Sanders Kaufman on 12/24/06 09:34
bloggsfred00@hotmail.com wrote:
> I need to read incoming bytes on a COM port but I do not want to have
> the script hang if there is nothing to read.
>
> Is there any way to have PHP interrogate a COM port buffer to see if
> there is any content before reading it?
>
> Any other method to achieve the result would also be welcome.
>
> Cheers,
> Fred.
Look into the COM object for Windows PHP.
Anything you can do with COM, you can do through that object.
Just don't get confused with what's a COM port (communications)
and what's a COM object (Component Object Model).
Navigation:
[Reply to this message]
|