extension module for data acquisition

php.internals

Jan Zwiegers

21 years ago
Hi there I work for a company called Eagle Technology and we manufacture a wide range of data acquisition devices; USB, PCI, PC/104 plus etc. Our main API is called EDR Enhanced and is available for both Win32 and Linux. I'm looking at developing a PHP extension for EDR Enhanced. Can anyone possibly tell what is the best route to develop this module and test it. I'm refering to code samples, documentation etc. I would really appreciate this. Many thanks, Jan Zwiegers --- Chief Software Engineer Eagle Technology Cape Town, South Africa

Sara Golemon

21 years ago
Jan- For code samples you can look at any number of extensions available in the PECL repository ( http://pecl.php.net ). For more direct assistance, the best mailing list would be pecl-dev@lists.php.net . Do you plan to release your extension to the public as an open source extension? Or would your company rather keep the extension closed source and package it with their product? Either approach is fine, but if you plan to release it as an OSS extension then the PECL repository can offer hosting space for the source code, and package downloads (Note: LGPL licensing is strongly discouraged and GPL licensing is outright disallowed on all packages hosted in PECL -- BSD or PHP license is preferred). -Sara "Jan Zwiegers" <jan@eagle.co.za> wrote in message news:41AADC63.60907@eagle.co.za...

Marcus Börger

21 years ago
Hello Jan, Monday, November 29, 2004, 9:22:59 AM, you wrote:
> Hi there
> I work for a company called Eagle Technology and we manufacture a wide > range of data acquisition devices; USB, PCI, PC/104 plus etc. > Our main API is called EDR Enhanced and is available for both Win32 and > Linux. > I'm looking at developing a PHP extension for EDR Enhanced.
> Can anyone possibly tell what is the best route to develop this module > and test it. I'm refering to code samples, documentation etc. > I would really appreciate this.
All we can say is just look at the code of other extensions - unfortunatley it seems there is only documentation living on two legs available otherwise. However it is relativley easy for an experienced c programmer. Best regards, Marcus mailto:helly@php.net

Hartmut Holzgraefe

21 years ago
Marcus Boerger wrote:
> All we can say is just look at the code of other extensions - unfortunatley > it seems there is only documentation living on two legs available otherwise. > However it is relativley easy for an experienced c programmer.
Well, some of us have tried to do brain dumps. George Schlossnagle has dedicated part of his "Advanced PHP Programming" book to extension writing (http://www.amazon.com/exec/obidos/ASIN/0672325616) and i have created sort of a code generator called PECL_Gen http://pecl.php.net/package-info.php?package=PECL_Gen Warning: you have to remove one line from the package.xml file before you can install it. It is the line that mentions "void.c" I needed to add it to make the upload process accept the package for now. Documentation is included in the manual.html file within the package, there are also some conference slides on this http://talks.php.net/show/PECL_Gen
-- Hartmut Holzgraefe <hartmut@php.net>