Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32095 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8806 invoked by uid 1010); 7 Sep 2007 18:24:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8791 invoked from network); 7 Sep 2007 18:24:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2007 18:24:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.198.188 rv-out-0910.google.com Received: from [209.85.198.188] ([209.85.198.188:12985] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/F2-29055-57791E64 for ; Fri, 07 Sep 2007 14:24:55 -0400 Received: by rv-out-0910.google.com with SMTP id k15so485711rvb for ; Fri, 07 Sep 2007 11:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Mpa6vQoMxgbXNFf1vdI67XTbvVbe0NEMgw+p/iwTdRs=; b=sZ8+sFH+I5+Q9vL/jorXMaU/unOq+FypRVI1Pwa9e8dJqdhHYYx7RVofnvFIwFA4czv4Nd45Btzqp7M/ciuxJWsrlvx98GCUYGjXMuOmv6Ah+F1Fe3fenNGhu2n9Aj6M0FJ1sYT1HjGRxttcUYzDgtSQXQHjJiE3rqoIRK8/sqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ikNnHUef3gXliYVHbAZDhDjKJWvLUcR+E1OHMsuVuKEZANMFgBfjcWCGq/bV1rcXmShDYF+0XhaQ55lTCsNWaiQx26+14f/E7dBruh+x2BKa4D2Qogm4iQPBZIgYd6j9NtnXmEZ2XddG4NGBf0cshkLLtdSMYit71HiWADgqWio= Received: by 10.140.143.9 with SMTP id q9mr819100rvd.1189189490716; Fri, 07 Sep 2007 11:24:50 -0700 (PDT) Received: by 10.140.127.15 with HTTP; Fri, 7 Sep 2007 11:24:45 -0700 (PDT) Message-ID: Date: Fri, 7 Sep 2007 14:24:45 -0400 Sender: david.coallier@gmail.com To: "Marten Lehmann" Cc: internals@lists.php.net In-Reply-To: <46E19121.1010906@cnm.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46E19121.1010906@cnm.de> X-Google-Sender-Auth: e87e51c72e34bbc0 Subject: Re: [PHP-DEV] own php function From: davidc@php.net ("David Coallier") On 9/7/07, Marten Lehmann wrote: > Hello, > > I would like to create an own php function which just prints a certain > report as phpinfo() does. > > The function shall not be included into the general php code, I just > want to patch my own installation. Where would be a good place for the > function? I don't want to create an extention which would have to be > included into the configure script, I guess thats too much work. The > function shall be able to access the Host-header of the webserver. > > Regards > Marten > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > You could make your own extension.. in order to write them (Because after writting one you realize you need more) you should be using either that book by Sara: http://www.amazon.com/dp/067232704X?tag=libssh2projec-20&camp=14573&creative=327641&linkCode=as1&creativeASIN=067232704X&adid=01HQSM6RF0V2X97Y0VPW& Or Start by reading: http://devzone.zend.com/article/1021-Extension-Writing-Part-I-Introduction-to-PHP-and-Zend And I would probably direct you towards pecl-dev@lists.php.net The reason I am mentioning to make your own extension is to save you the hassle of migrating from a version to another. If you make your extension you can easily package it, and when you recompile/re-install php, you just pecl install MyOwnExtension or such. -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18