White page at a PHP script

You will get a white page when you execute / modify a PHP script.

In this case you need to turn on extended error messages in your code.

You can display PHP errors by putting the following code at the very top of your page:


ini_set("display_errors", 1);
error_reporting(E_ALL);
?>

Notice:

Parse errors occur before a PHP script is executed. This means that they will not be displayed, as the default value for display_errors is still retrieved from the php.ini at that time.

You can also find more information about PHP errors here:

https://www.php.net/manual/en/errorfunc.configuration.php