# I'm interested in helping develop PHP

- Thread: https://externals.io/message/5171
- Original archive: https://news-web.php.net/php.internals/5171
- Started by Buckley Robinson on 2003-10-31T20:12:53+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5171 — Buckley Robinson — 2003-10-31T20:12:53+00:00

URL: https://externals.io/message/5171#5171

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

---

## #5176 — netcat — 2003-11-03T17:52:46+00:00

URL: https://externals.io/message/5171#5176 · In reply to: #5171

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

---

## #5179 — Hartmut Holzgraefe — 2003-11-04T10:15:28+00:00

URL: https://externals.io/message/5171#5179 · In reply to: #5176

netcat wrote:
> Buckley Robinson wrote:
> 
> > […]
> 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
