Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21834 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49335 invoked by uid 1010); 10 Feb 2006 14:42:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49318 invoked from network); 10 Feb 2006 14:42:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2006 14:42:17 -0000 X-Host-Fingerprint: 194.73.73.209 c2bthomr01.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.209:3075] helo=c2bthomr01.btconnect.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 16/5D-35443-846ACE34 for ; Fri, 10 Feb 2006 09:42:16 -0500 Received: from VaioCen (host81-138-95-202.in-addr.btopenworld.com [81.138.95.202]) by c2bthomr01.btconnect.com (MOS 3.5.9-GR) with ESMTP id EHT88641; Fri, 10 Feb 2006 14:41:43 GMT Message-ID: <00d601c62e50$2b3f7c00$ca5f8a51@VaioCen> To: Date: Fri, 10 Feb 2006 14:42:06 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00D3_01C62E50.2A3EADD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Dead C Scrolls - Missing Code for Writing New Extensions without recompiling PHP From: an.dromeda@btconnect.com ("Andrew Mather") ------=_NextPart_000_00D3_01C62E50.2A3EADD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My thanks to the contributors and for the resource documentation that: a) has confirmed that writing extensions without recompiling PHP is = possible b) have provided sample code that requires recompilation of PHP As a Linux newbie but experienced Windows programmer I do not have the arcane knowledge to infer from the recompile-PHP sample how to=20 modify it to generate a must-recompile-php sample to a standalone = extension. I haven't used make in twenty years, and autoconf is alien to me. I am getting to grips with .so (shared object) libraries in Unix, but I = am in the dark and my effort would be greatly expedited by someone knowledgeable = in the art. I therefore re-interate my request for a complete walkthrough for = writing an extension that does not require recompilation of php but can be = treated as a simple external standalone project, for later inclusion into the = Apache/PHP=20 module by dynamic linking. I have installed and am running Suse 9.3, with Apache 2.0 and Php 5, all from the Suse distribution. I have downloaded the source for Php 5.1.1, = but while I have compiled such (in the course of the = build-extension-with-recompile) I do not wish to rely on having to recompile PHP every time I wish to build an = extension. I have not therefore attempted to replace the distribution-Php with the = compiled-Php. At this point, my need for such assistance is critical, as a client = project is stalled for lack of it. I appreciate that money is a dirty word in Linux, but time and money are = being wasted for want of these answers, so that I would be more than happy to provide = =A3100 for the first proven and effective replies in each of these categories (all of = which may happily be 'scooped' by or paid to a single person): i) a walkthrough of the exact steps + sample code to write an = extension without requiring re-compilation of Php and without access to Php source = code ii) as above but with access to Php source code iii) as above (either i or ii) but with instructions to allow the = project to be initiated and compiled within the KDE development environment Resulting object (presumably .so) to be accessible in a distribution = release of Apache/Php with only minor modification of a client's Apache/Php config settings. ------=_NextPart_000_00D3_01C62E50.2A3EADD0--