How to display php error like Codeigniter?
25
I am working on PHP online IDE using core PHP. How to display PHP error like CodeIgniter when user tests php code?
I am working on PHP online IDE using core PHP. How to display PHP error like CodeIgniter when user tests php code?
People are also looking for solutions to the problem: mysql - Something is wrong with my custom php function
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
Find the answer in similar questions on our website.
Answer
Solution:
I can't say for exactly like codeignitor because I have never used it, but:
Method 1
You can edit php.ini
You may edit the HTML and use some ways(like js,though,I don't know if it is a good idea) to make it look better
Method 2
Use a custom handler:
function myErrorHandler($errno, $errstr, $errfile, $errline) {
And set it as
Check it with this:
More Info