Phpinfo System View parametric function code _php tutorial

Source: Internet
Author: User
Copy CodeThe code is as follows:
/*
+--------------------------------------------------------------------------
| 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
+---------------------------------------------------------------------------

| During 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 of where to write, and did not carry out reasonable planning, I think, in the future I have time will be nearly one step later update

+--------------------------------------------------------------------------
*/
Suppress all error messages
Session_Start ();
Ini_set (' display_errors ', ' off ');
Calculate the page run time function
function Getmicrotime () {
List ($usec, $sec) = Explode ("", Microtime ());
return (float) $usec + (float) $sec);
}
$pagestartime =getmicrotime ();
Use notifications
$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);
}
Re-initialize session
$_session[' user ']= ' lovehaoge ';
Display constants
Define ("On", " √");
Define ("Off", " x");
Define ("Version", " v0.05");//Version number
Display switch
$mysqlReShow = "None";
Performance Information Results 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 = "not detected";
}


PHP Probe B-check official latest version
Http://www.jb51.net/codes/10292.html

http://www.bkjia.com/PHPjc/320263.html www.bkjia.com true http://www.bkjia.com/PHPjc/320263.html techarticle Copy the code code as follows: PHP/* +--------------------------------------------------------------------------| B-check v0.05 | ======================================== | South Third ...

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