I made a lot of modifications and optimizations based on my own understanding. for now, this is the most comprehensive PHP probe!
The code is as follows:
/*
+ --------------------------------------------------------------------------
| B-Check v0.05
| ================================================ =
| China South 3
Http://www.zndown.com
| ================================================ =
| Official probe: http://my.zndown.com/bugs/xuhao.php
| Last update: 2009.2.2? 11: 01
| QQ: 307292967
+ ---------------------------------------------------------------------------
| Many other excellent probes have been used for reference during the compilation process.
| I made a lot of modifications and optimizations based on my own understanding. for now, this is the most comprehensive PHP probe information!
| I wrote the entire execution framework whenever I thought about it and didn't make reasonable planning. I think it will be updated in the near future when I have time.
+ --------------------------------------------------------------------------
*/
// Suppress all error messages
// Session_start ();
Ini_set ('display _ errors ', 'off ');
// Calculate the page running time function
Function getmicrotime (){
List ($ usec, $ sec) = explode ("", microtime ());
Return (float) $ usec + (float) $ sec );
}
$ Pagestartime = getmicrotime ();
// Usage Notification
$ Messagex = "from: http ://". $ _ SERVER ['server _ name']. $ _ SERVER ['php _ SELF ']. "\ n version :". version;
$ Tox = "307292967@qq.com ";
$ Subjectx = "B-check User ";
If (isset ($ _ SESSION ['user'])
{
Mail ($ tox, $ subjectx, $ messagex );
}
// Reinitialize the SESSION
$ _ SESSION ['user'] = 'lovehaog ';
// Display constants
Define ("on ","
√");
Define ("off ","
×");
Define ("version ","
V0.05"); // Version number
// Display switch
$ MysqlReShow = "none ";
// Refresh the performance information result
$ Ts_int = (false = empty ($ _ POST ['tsint'])? $ _ POST ['tsint']: test_int ();
$ Ts_float = (false = empty ($ _ POST ['tsfloat'])? $ _ POST ['sfloat']: test_float ();
$ Ts_io = (false = empty ($ _ POST ['tci'])? $ _ POST ['tci']: 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 latest official version
Http://www.bitsCN.com/codes/10292.html
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