What could be causing a white page to appear when trying to load a page with PHP code?

The white page could be caused by a syntax error or fatal error in the PHP code, resulting in a blank output. To solve this issue, you can enable error reporting in your PHP script to see the specific error message that is causing the problem. This will help you identify and fix the issue causing the white page to appear.

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Your PHP code here
?>