This article mainly introduces about how to implement Phpinfo system view parameter function, has a certain reference value, now share to everyone, the need for friends can refer to
And according to their own understanding to do a lot of modification and optimization, for the moment, this is the most comprehensive detection information PHP probe!
The code is as follows:
<?php/* +--------------------------------------------------------------------------| B-check v0.05 | ======================================== | South Third Production | http://www.zndown.com | ======================================== | Probe Official: http://my.zndown.com/bugs/xuhao.php | Last update: 2009.2.2? 11:01 | qq:307292967 +---------------------------------------------------------------------------| In the writing process, learning from a lot of other excellent probes | And according to their own understanding to do a lot of modification and optimization, for the moment, this is the most comprehensive detection information PHP probe! | The entire implementation framework, I was thinking about where to write, and did not make a reasonable plan, I think, in the future I have time will be nearly one step update +-------------------------------------------------------------- ------------*//Suppress all error messages//session_start (); Ini_set (' display_errors ', ' off '); Calculates the page run Time function getmicrotime () {list ($usec, $sec) = Explode ("", Microtime ()); return (float) $usec + (float) $sec); } $pagestartime =getmicrotime (); Use the notification $messagex = "From:/http". $_server[' server_name '].$_server[' php_self ']. " \ n \ nthe version: ". versions; $tox = "307292967@qq.com"; $subjectx = "B-check User"; if (Isset ($_session[' user ')) {mail ($tox, $subjectx, $messAgex); }//Reinitialize SESSION $_session[' user ']= ' lovehaoge '; Display constant define ("on", "<font color=\" green\ "><b>√</b></font>"); Define ("Off", "<font color=\" red\ "><b>x</b></font>"); Define ("Version", "<b>v0.05</b>");//version number//display switch $mysqlReShow = "None"; Performance information result Refresh $ts _int = (false = = Empty ($_post[' tsint '))? $_post[' Tsint ']:test_int (); $ts _float = (false = = Empty ($_post[' tsfloat '))? $_post[' Tsfloat ']:test_float (); $ts _io = (false = = Empty ($_post[' Tsio '))? $_post[' Tsio ']:test_io (); if (Isset ($_post[' Speed '))) {$speed =round (100/($_post[' Speed ']/1000), 2);} elseif ($_get[' speed ']== "0") {$speed = 6666.67; } elseif (Isset ($_get[' Speed ')) and $_get[' Speed ']>0) {$speed =round (100/($_get[' Speed ']/1000), 2);} else {$speed = "& Lt;font color=red> not detected </font> "; }
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!