0

I’m trying to use a custom error handling system in PHP.

I want to send a certain document in place of the one that causes the error, but I don’t want to redirect.

Pretty much, I’m trying to replicate what ErrorDocument does (But I can’t use ErrorDocument, as it’s a 500 error).

Jeweled
  • 39
  • 8

1 Answers1

-2

Alright, I got it.

I had to require the error showing script in my handler (registered in register_shutdown_function).

Jeweled
  • 39
  • 8
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 30 '22 at 10:05