PHP: phpinfo

2012 年 12 月 23 日4720

big thanx 2 Mardy dot Hutchinson at gmail dot com

very good!

some fixes to correct result displaying:

1. we need to trim $matches [1], 'cause there can be empty lines;

2. not bad to remove <body> tag 'cause styles for it not apply correctly...

3. ...and change styles a little (remove "body" selector)

we need to change two lines:

<?php

preg_match );

?>

to

<?php

preg_match );

?>

and

<?php

preg_split] )

?>

to

<?php

preg_split])) )

?>

That's all! Now we have a really flexible addition to phpinfo();

0 0