This article address share outline: 1. Set error error level, display error 2.possible causes of white pages
1. "Set error error level, show error"PHP development, access to the address is also right, but is not out of the page, the display is a white page, so you can judge that there is an error occurred, through the Firebug also did not check out, after the need to go to index.php this entry file, set the error mechanism, this than PHP.ini, set the priority high because it is more back. Define (' Environment ', ' Dev '); For the development environment, define (' environment ', ' production '); Is the production environment, prohibit all error, remember to develop completely, then change the past
2. "Possible causes of white pages"
After this appearance of white pages, it must be an error is not out, unless the Display page is blank. It could be a couple of things.
A. No errors are set in php.ini
B. The page itself has settings error_reporting (0);
C. Using the @ symbol suppresses the generation of hint errors
D. A framework such as CI, in the system at the entrance file index.php in the production environment or development environment, corresponding to the corresponding error mechanism processing.
E. You can use Firefox's firbug to see the error, in the "console", or "network", see "Response", "HTML" and so on, here
There will also be hints, in addition, to the development of Ajax such as Json,xml, controller and model output can also be seen in these two places.
"Tamping PHP Foundation" PHP Development encountered white page debugging method