Not receiving errors in PHP

Hello!
I have this code:
[php]

<?php error_reporting(E_ALL); $filename = __DIR__ . '/../src/bootstrap.php'; if (file_exists($filename)) { require_once __DIR__ . '/../src/bootstrap.php'; } else { echo 'Not Found: '.__DIR__ . '/../src/bootstrap.php'; } $filename = __DIR__ . '/../src/app.php'; if (file_exists($filename)) { $app = require_once __DIR__ . '/../src/app.php'; $app->run(); } else { echo 'Not Found: '.__DIR__ . '/../src/app.php'; } echo "index.php"; [/php] On my local server is working, but when I uploaded on public server not, and I didn't get any error message. Where is the issue?

I fix it replacing
[php]error_reporting(E_ALL);[/php]
with
[php]ini_set(‘display_errors’, 1);[/php]
Now I can see the errors!

Sponsor our Newsletter | Privacy Policy | Terms of Service