0

I would just like to know how I can get the actual error message that my PHP code returns. At the moment, all that happens when I have an error is that my browser gives me the message, "Server Error".

Thanks Tom.

Dave H
  • 653
  • 12
  • 22
Thomas Gouder
  • 125
  • 2
  • 2
  • 10

1 Answers1

2

The problem is you probably have everything disabled in php.ini. You can, at runtime, modify those values with the following statements:

ini_set("error_reporting", E_ALL);
ini_set("display_errors", "On");
ini_set("display_startup_errors", "On");
agustinsantiago
  • 104
  • 1
  • 8