I have PHP errors enabled like so:
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
But the default behavior is for PHP to stick the errors in the places where they occur. So if for example I had the following markup and both variables being called are undefined:
<html>
<head>
<title><?= $title ?></title>
</head>
<body>
<?= $content ?>
</body>
</html>
The output will be like so:
<html>
<head>
<title>Notice: undefined variable title...</title>
</head>
<body>
Notice: undefined variable content...
</body>
</html>
Instead I want the errors to appear in one place like so:
<html>
<head>
<title></title>
</head>
<body>
<div class="php-errors">
Notice: undefined variable title...<br />
Notice: undefined variable content...
</div>
</body>
</html>
Is there any setting in PHP (or some other way) to set the place where the errors will show?