0

This is what displays on my screen when I forget to add a ; to the end of a function.

syntax error

This is what happens when I do the same thing online error 500 in google chrome

How do I get the first effect on my website?

desbest
  • 4,269
  • 11
  • 45
  • 76
  • 4
    Can I suggest you don't have public facing errors? Instead read your error logs on your server. `tail -f /path/to/log.log` – Jack Oct 13 '16 at 16:20
  • 3
    Possible duplicate of [How do I get PHP Errors to display?](http://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display) – BlitZ Oct 13 '16 at 16:22
  • Have you tried displaying errors with ini_set('display_errors', 1), though as previously mentioned, you should really check your logs. – MCMXCII Oct 13 '16 at 16:24
  • I've tried the top rated answer by setting that and php.ini and it doesn't work. @JackNicholson It's better to show an error message than a error 500. – desbest Oct 14 '16 at 08:40
  • @desbest Not to the public. Read your logs on the server directly. – Jack Oct 14 '16 at 08:57
  • @JackNicholson Yes I get logs on the server but I want the log to appear on the web browser page too. – desbest Oct 14 '16 at 13:39

0 Answers0