I would like to edit the source files that phpinfo() generates. I don't mean the values. I mean that actual html that gets produced with phpinfo(). Where can I find these files. I have Fedora 9. I know I could use css and javascript to style it, but I would rather edit the files at the source because I want it to be restricted to all my sites and clients.
Thanks ahead.
how can I edit phpinfo() source files
Moderator: General Moderators
-
ethanlifka
- Forum Newbie
- Posts: 5
- Joined: Mon Aug 11, 2008 1:03 pm
-
filippo.toso
- Forum Commoner
- Posts: 30
- Joined: Thu Aug 07, 2008 7:18 am
- Location: Italy
- Contact:
Re: how can I edit phpinfo() source files
The result of phpinfo() is generated dynamically. There's no HTML/CSS source file.
If you want to "personalize" it, you can use the Output Buffering functions (i.e. ob_start()/ob_get_clean()) to catch the generated contet and then use DOM, RegExp or sting functions to modify the content before send it to the clients.
You can disable it using the disable_functions directive or limits it using the expose_php directive.
If you want to "personalize" it, you can use the Output Buffering functions (i.e. ob_start()/ob_get_clean()) to catch the generated contet and then use DOM, RegExp or sting functions to modify the content before send it to the clients.
You can disable it using the disable_functions directive or limits it using the expose_php directive.