Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32100 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23396 invoked by uid 1010); 7 Sep 2007 19:21:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23381 invoked from network); 7 Sep 2007 19:21:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2007 19:21:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:41349] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/A0-18302-BB4A1E64 for ; Fri, 07 Sep 2007 15:21:34 -0400 Received: (qmail 10422 invoked by uid 507); 7 Sep 2007 19:21:15 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.64.237) by mail4.netbeat.de with ESMTPA; 7 Sep 2007 19:21:15 -0000 Organization: php.net To: internals@lists.php.net Date: Fri, 7 Sep 2007 21:18:18 +0200 User-Agent: KMail/1.9.7 References: <46E19121.1010906@cnm.de> In-Reply-To: <46E19121.1010906@cnm.de> Cc: Marten Lehmann MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200709072118.19108.johannes@php.net> Subject: Re: [PHP-DEV] own php function From: johannes@php.net (Johannes =?iso-8859-1?q?Schl=FCter?=) Hi Marten, On Friday 07 September 2007 07:57:53 pm 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. A custom extension looks like the perfect place for such a thing since chan= ges=20 in PHP will less likely break it and you can simply copy it from PHP versio= n=20 to PHP version without having to care aobut changes in PHP... johannes > Regards > Marten =2D-=20 Johannes Schl=FCter http://schlueters.de