1

I want to make an application in php where users can run their php files. In that application I want to show more simple error messages to the user. Is there any procedure in php to edit default error messages?

4
  • 3
    Are you positively sure you want to let users to run a PHP code? Commented Sep 7, 2010 at 19:35
  • 1
    @Col. Shrapnel: Yes for learning purpose only. Commented Sep 7, 2010 at 19:38
  • Who is supposed to learn? You are or your users? Commented Sep 7, 2010 at 19:43
  • 1
    well well. I'm afraid your precious configuration will be broken in minutes :) Commented Sep 7, 2010 at 20:15

2 Answers 2

1

You can set your own error handler.

Sign up to request clarification or add additional context in comments.

Comments

0

use set_error_handler and set_exception_handler to intercept errors and exceptions so you can display your own messages

1 Comment

Yeah. Just write all these thousands own messages. Easy-peasy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.