|
Posted by bloggsfred00 on 12/27/06 04:45
Thanks - but even though I read it all I cant see a solution there.
Nothing in that thread pretests the port for data before trying to read
it.
Can you be more specific?
hackajar@gmail.com wrote:
> Solution:
> Read This thread: (all of it!)
> http://www.phparch.com/discuss/index.php/m/2980/0/
>
> Merry whatever!
>
> -Hackajar
>
>
> bloggsfred00@hotmail.com wrote:
> > I had a look at the APIs before I posted here and was praying for an
> > easier solution. So far no luck. I have used API calls in PHP before so
> > if it has to be the APIs then so be it, but I could not find an obvious
> > "is there any bytes to read" call there either.
> >
> > I had a quick look at the MSCOMM32.OCX information and thought that
> > might do the trick, but I am not sure how to go about getting installed
> > on the server. I have full permissions (I built the server) but have
> > not played with ActiveX and PHP before.
> >
> > Any guidance most gratefully received.
> >
> > Fred.
> >
> > Sanders Kaufman wrote:
> > > bloggsfred00@hotmail.com wrote:
> > > > Sanders Kaufman wrote:
> > >
> > > >> Just don't get confused with what's a COM port (communications)
> > > >> and what's a COM object (Component Object Model).
> > > >
> > > > I didnt think I was confused, but perhaps I am.
> > > >
> > > > Is there a standard COM Object for serial ports that I can instantiate
> > > > through PHP?
> > >
> > > http://msdn2.microsoft.com/en-gb/library/aa490273.aspx
> > >
> > > In Windows - not so much a COM object, as a suite of API's. In
> > > the MSDN documentation, you can learn about the complexity's of
> > > serial port i/o with API's. If you're not already familiar with
> > > programming Windows, there's a pretty steep learning curve for
> > > API's.
> > >
> > > If you have rights to install ActiveX controls on the server,
> > > you can probably pick up one of those for a couple of bucks that
> > > will do what you're asking. Then, Serial I/O will be a snap
> > > through PHP.
Navigation:
[Reply to this message]
|