Add the following in the beginning of the PHP page
$ TIME_START = Getmicrotime ();
Function getmicrotime ()
{
List ($ Uses $ sec) = expedition ("", microtime ());
Return (FLOAT) $ uEC (FLOAT) $ sec);
}
?>
Then add the following code to finally
$ TIME_END = Getmicrotime ();
Printf ("[[[page execution time:% .2F milliseconds] / n / n", ($ TIME_END - $ TIME_START) * 1000);
?>
$ file = fopen ($ filename, 'r') or Die ("Sorry, you can't open: $ filename");
OR is understood here because it does not distinguish between the data type in PHP, so File can be both int or Bool, so this statement does not report error. But the process may not understand some friends. In fact, in most languages, BOOL OR BOOL has a statement such if the previous value is true after a value, it will not be judged. It is also, so if the FOPEN function is executed correctly, it will return a more than 0 int value (this is actually "true"), and the following statement will not be executed. If the Fopen function failed, it will return false, then it is true if it is judged whether it is true. The result is performed after Die (), no matter what is returned, the program has stopped executing, and the specified error message is displayed, and the purpose of debugging is achieved.
PHP check box problem