Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42120 invoked by uid 1010); 3 Nov 2003 17:47:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42085 invoked from network); 3 Nov 2003 17:47:42 -0000 Received: from unknown (HELO mail.sites-secure.com) (213.189.34.71) by pb1.pair.com with SMTP; 3 Nov 2003 17:47:42 -0000 Received: by mail.sites-secure.com (CommuniGate Pro PIPE 3.5.9) with PIPE id 99745; Mon, 03 Nov 2003 19:55:16 +0200 Received: from [192.117.106.24] (account ilya@up.co.il HELO abox.co.il) by mail.sites-secure.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 99737 for internals@lists.php.net; Mon, 03 Nov 2003 19:55:10 +0200 Message-ID: <3FA695EE.4020204@abox.co.il> Date: Mon, 03 Nov 2003 19:52:46 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: PHP Development References: In-Reply-To: X-Enigmail-Version: 0.76.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-DoalSignature: rot-4 (smtp) Subject: Re: [PHP-DEV] I'm interested in helping develop PHP From: netcat@abox.co.il (netcat) 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