how can I edit phpinfo() source files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ethanlifka
Forum Newbie
Posts: 5
Joined: Mon Aug 11, 2008 1:03 pm

how can I edit phpinfo() source files

Post by ethanlifka »

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.
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

Post by filippo.toso »

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.
Post Reply