0

i am using LAMP on my server and when i make a syntax error on a php my apached doesn't show it, it just shows a blank white page, How can i configure it and make it displays the error ?

Montaser Qasem
  • 117
  • 2
  • 11
  • Follow http://php.net/manual/en/errorfunc.configuration.php – Web Artisan May 23 '16 at 13:20
  • Displaying errors on a live/production system is considered bad practice - it can expose a lot of information about the internals of your application. Further relying on display of errors in your browser will add complications to debugging of issues when PHP is generating different content types (CSS, images, Javascript, audio, downloadable content....). Make sure that the errors are being LOGGED and ensure you are checking the logs regularly. – symcbean May 23 '16 at 13:25

1 Answers1

1

try this: error_reporting(E_ALL); ini_set("display_errors", 1);

caryarit ferrer
  • 326
  • 3
  • 12