+212662161818 Du Lundi au Samedi / 8h à  21h

How to display errors in PHP?

Retour

how to display errors in PHP?

Here is the procedure to enable the display of errors for PHP debugging:

- Create a new text file (for example with the notepad if you are on Windows)

- Insert the following line in the file:
php_flag display_errors On

- Save the file with name ".htaccess". Be careful so that this manipulation is functional place the file in the directory where the PHP files of which you want to see the errors are located.


My PHP scripts do not recover the transmitted variables

For security reasons the REGISTER_GLOBALS variable is OFF, if you still want to make it ON.
Create an .htaccess file in which to insert: php_flag register_globals on

commander