When we refer to web applicatio development, Php is always in the middle of topics in the field. Indeed, it offers many advantages making it a good rating currently. Of course, there are cases where its use is not optimal or is governed by errors such as blank page. In these cases, it is always good to know the workings of Php to know how the debuger.

PHP: an important tool

First, you must know that PHP is a recursive acronym for PHP Hypertext Preprocessor report. It is a scripting language for both general and Open Source. Also, it has been specially designed for web application developers like php development company. Although PHP will easily fit in HTML. Specifically, to show it, it will not be necessary to use thousands of orders when using PHP. You should know that PHP pages contain HTML Fragements which allow the web server to pass quickly in PHP mode. The specificity of PHP over other languages ​​of the same type is that it will run only on a server. The PHP code will therefore generate the HTML on the server and send the results to the client without the latter can not have access to the code that produced the result.

Avoid the white pages

There are situations where one receives a blank page even after checking the source code of the page. In most cases, this kind of concern is due to one or more errors in the PHP code. This can also be due to the deactivation of error messages. To avoid this concern blank page therefore two possibilities open to us. Above all, it will check the PHP logs and, of course, Apache. In case you do not know where is the log file of PHP errors, it will suffice to phpinfo () and watch error_log () line. WampServer on, it will just click on the WampServer icon and go to the PHP menu. Then, simply go to "PHP error log." The same approach will make for Apache. The second option will affect the activity of the PHP error display. At the beginning of the PHP page so it will add "error_reporting (E_ALL);". Of course, it is possible to modify the php.ini, it is important to check the error_reporting and display_errors directives.