By default, if the PHP script being accessed contains syntax errors, the server returns an empty "OK" page.
The Fastcgi.error_header option in PHP.ini allows an HTTP error code to be generated in this case so that the Web server can properly intercept and process this error code, similar to calling the header () in PHP code directly to return a 500 status code, such as header ("http/1.1 Internal Server Error");
Reconfigure: Set display_errors = on Turn On error display in php.ini, it's OK.
The above reference http://www.cnblogs.com/thrillerz/p/4725409.html
As the above operation, it is a syntax error to make the following changes:
PHP Version:5.5.9-1, os:ubuntu14.04
$data=$query->result_array () [0][' total '];//array size must be present and greater than 0
Switch
PHP version:5.3.28, Os:centos
$data=$query-Result_array (); if (isset($dataCount($data) >0) { echo$data [0][' total ']; } { echo ' 0 ';
Suspect that this syntax is caused by the PHP version, to be available for later check.
500 Error accessing PHP page under LNMP schema