where is phpinfo 28 29

Solutions on MaxInterview for where is phpinfo 28 29 by the best coders in the world

showing results for - "where is phpinfo 28 29"
Brynlee
04 Apr 2018
1
2A simple method to style your own phpinfo() output.
3
4<style type="text/css">
5#phpinfo {}
6#phpinfo pre {}
7#phpinfo a:link {}
8#phpinfo a:hover {}
9#phpinfo table {}
10#phpinfo .center {}
11#phpinfo .center table {}
12#phpinfo .center th {}
13#phpinfo td, th {}
14#phpinfo h1 {}
15#phpinfo h2 {}
16#phpinfo .p {}
17#phpinfo .e {}
18#phpinfo .h {}
19#phpinfo .v {}
20#phpinfo .vr {}
21#phpinfo img {}
22#phpinfo hr {}
23</style>
24
25<div id="phpinfo">
26<?php
27
28ob_start () ;
29phpinfo () ;
30$pinfo = ob_get_contents () ;
31ob_end_clean () ;
32
33// the name attribute "module_Zend Optimizer" of an anker-tag is not xhtml valide, so replace it with "module_Zend_Optimizer"
34echo ( str_replace ( "module_Zend Optimizer", "module_Zend_Optimizer", preg_replace ( '%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo ) ) ) ;
35
36?>
37</div>
38