Re: own php function
| From: | Johannes Schlüter | Date: | Fri, 07 Sep 2007 19:18:18 +0000 |
| Subject: | Re: own php function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32100@lists.php.net to get a copy of this message | ||
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 changes
in PHP will less likely break it and you can simply copy it from PHP version
to PHP version without having to care aobut changes in PHP...
johannes
> Regards
> Marten
--
Johannes Schlüter
http://schlueters.de