Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26726 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36259 invoked by uid 1010); 27 Nov 2006 17:01:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36243 invoked from network); 27 Nov 2006 17:01:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2006 17:01:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=mauroi@digbang.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mauroi@digbang.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain digbang.com from 200.59.46.140 cause and error) X-PHP-List-Original-Sender: mauroi@digbang.com X-Host-Fingerprint: 200.59.46.140 mx.digbang.com Linux 2.5 (sometimes 2.4) (4) Received: from [200.59.46.140] ([200.59.46.140:20463] helo=mx.digbang.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/14-03444-9A91B654 for ; Mon, 27 Nov 2006 12:01:03 -0500 Received: (qmail 10164 invoked by uid 89); 27 Nov 2006 16:48:03 -0000 Received: by simscan 1.2.0 ppid: 10150, pid: 10159, t: 0.1337s scanners: attach: 1.2.0 clamav: 0.88.6/m:41/d:2242 Received: from unknown (HELO bensimon) (mauroi@digbang.com@200.127.112.162) by mx.digbang.com with ESMTPA; 27 Nov 2006 16:48:03 -0000 To: Date: Mon, 27 Nov 2006 14:00:21 -0300 Message-ID: <008601c71245$8681ded0$ec01010a@intranet.db> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AccSRYYiOmGHw5+qQZWvRtnUI3bzIw== Subject: Cross-extension resource From: mauroi@digbang.com ("Mauro N. Infantino") Hi all, I'm writing an extension in order to achieve better performance in a specific module from our application. Right now, I'm trying to use an already established mysql connection (with mysql_connect) in our = extension, so we don't have to connect to the database twice, since that connection = is used in the PHP code. I don't need PHP's mysql API, since I can do everything in C, I just want the connection ID. I've read Sara's = (great... GREAT) book, but I couldn't find any specific solution to this = situation. Is this possible? Is there a "best" way? Btw, thank you all for developing what is, by far, my preferred = language. Thanks in advance. Mauro Nicol=E1s Infantino.