but I can't find documentation on it.
I need to know the following:
-
How to add new function to php -
In that function how to write to the http stream -
How to access data from sql recordset
Please point me in the right direction for this. Thanks.
-- Regards,
Buck Robinson
Buckley Robinson wrote:
but I can't find documentation on it.
I need to know the following:
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 ...
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.
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
netcat wrote:
Buckley Robinson wrote:
but I can't find documentation on it.
I need to know the following:
How to add new function to phpWell, 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