Writing an Extension

php.internals

Arjun Jain

21 years ago
Hello everyone, I am not sure if this is the right place to ask this but let me anyways. We need to write a PHP extension for the PI API (http://www.picorp.com). I have been googling and reding up stuff over the net for the last 3 days but alas not to much help. Other than ext_skel and PECL_Gen, are there any other options? What should I use? And also for the previous two, these does not seem to much information available. Can someone please throw some light on the subject? TIA Regards, Arjun

Michael Wallner

21 years ago
Hi Arjun Jain, you wrote:
> We need to write a PHP extension for the PI API (http://www.picorp.com).
> Other than ext_skel and PECL_Gen, are there any other options? What > should I use? And also for the previous two, these does not seem to much > information available. > > Can someone please throw some light on the subject?
`./ext_skel --ext-name=pi` should give you a reasonable skeleton to start with. The Zend-API section of the PHP manual provides some rough basics. Unfortunatly the best resources are lxr.php.net and ext and pecl sources. Good luck,
-- Michael - < mike(@)php.net >

Pierre-Alain Joye

21 years ago
On Tue, 22 Feb 2005 09:38:38 +0100 mike@php.net (Michael Wallner) wrote:
> Hi Arjun Jain, you wrote: > > > We need to write a PHP extension for the PI API > > (http://www.picorp.com). > > > Other than ext_skel and PECL_Gen, are there any other options? > > What should I use? And also for the previous two, these does not > > seem to much information available. > > > > Can someone please throw some light on the subject? > > `./ext_skel --ext-name=pi` should give you a reasonable skeleton
In my opinion (and Hartmut's one :)) http://pecl.php.net/PECL_Gen is far more up to date to generate skeleton or a full extension. --Pierre