How to implement Phpinfo system view parameter function

Source: Internet
Author: User
Tags phpinfo
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.