Re: ioctl() in PHP
| From: | Filippo Veneri | Date: | Mon, 09 Dec 2002 13:07:35 +0000 |
| Subject: | Re: ioctl() in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127488@lists.php.net to get a copy of this message | ||
On Mon, 2002-12-09 at 13:41, Lokesh Setia wrote:
>
>
> Hello PHP'ers!
>
> We wish to control a hardware device (a GPIB card) using a web
> interface. This device is normally controlled using either:
>
> 1. simple ioctl() calls to the linux kernel
> 2. by a higher level C-library which inturn calls these ioctl()s.
>
> Does PHP support system calls like ioctl()? I was unable to find it in
> the PHP manual. Or even better, can I use the high-level C library
> functions for this card from within PHP, without _too_ much of hacking
> into the internals of PHP ?
>
I'm not an expert, but I think that your best bet is to write an
external module for php that creates the necessary bindings for your
high level API.
Check the docs for the details:
http://www.php.net/manual/en/zend.php
bye,
fbv