I'm interested in helping develop PHP

php.internals

Buckley Robinson

22 years ago
but I can't find documentation on it. I need to know the following: 1. How to add new function to php 2. In that function how to write to the http stream 3. How to access data from sql recordset Please point me in the right direction for this. Thanks. -- Regards, Buck Robinson

netcat

22 years ago
Buckley Robinson wrote:
>but I can't find documentation on it. > >I need to know the following: >1. How to add new function to php >
Well, I'm far from being competent here but since I don't see any answers... The best place to start IMHO is php-x.y.z/ext directory It have a script to create new extension "ext_skel". Use "--help" option to start. Look at the files it create. It helped me ...
>2. In that function how to write to the http stream >
printf() will do but it doesn't seems to be correct thing since headers (sent?) state is not checked. It means you can start output and headers will be sent _after_ your output. you can use printf() for debug purposes till you find appropriate way.
>3. How to access data from sql recordset >
No idea. You should look in ext/mysql/*.c.
> >Please point me in the right direction for this. Thanks. > >-- Regards, > Buck Robinson > > >
-- NetCat ------------------------------------------------------ SPAM-Free 10mb Free email + Antivirus + POP3 + more... Get it at http://www.doal.co.il:81/free/?c=all-spam

Hartmut Holzgraefe

22 years ago
netcat wrote:
> Buckley Robinson wrote: > >> but I can't find documentation on it. >> >> I need to know the following: >> 1. How to add new function to php >> > Well, I'm far from being competent here but since I don't see any > answers... > > The best place to start IMHO is > php-x.y.z/ext > directory > It have a script to create new extension "ext_skel". > Use "--help" option to start. > Look at the files it create. > It helped me ...
or you can get yourself the PEAR-Package PECL_Gen available on http://pear.php.net/package/PECL_Gen Documentation is also available http://cvs.php.net/co.php/pear/PECL_Gen/manual.html?login=2&r=1.3&p=1
-- Hartmut Holzgraefe <hartmut@php.net>