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
-
3Are you positively sure you want to let users to run a PHP code?Your Common Sense– Your Common Sense2010-09-07 19:35:54 +00:00Commented Sep 7, 2010 at 19:35
-
1@Col. Shrapnel: Yes for learning purpose only.chanchal1987– chanchal19872010-09-07 19:38:51 +00:00Commented Sep 7, 2010 at 19:38
-
Who is supposed to learn? You are or your users?Your Common Sense– Your Common Sense2010-09-07 19:43:29 +00:00Commented Sep 7, 2010 at 19:43
-
1well well. I'm afraid your precious configuration will be broken in minutes :)Your Common Sense– Your Common Sense2010-09-07 20:15:11 +00:00Commented Sep 7, 2010 at 20:15
Add a comment
|
2 Answers
use set_error_handler and set_exception_handler to intercept errors and exceptions so you can display your own messages
1 Comment
Your Common Sense
Yeah. Just write all these thousands own messages. Easy-peasy