Jump to content

E_ERROR/E_WARNING


Recommended Posts

it should give you a line number and file in which the error occurred. combined with a error type and message, that should be sufficient to resolve the issue. unless there is something else I'm missing in your question.

Link to post
Share on other sites

If you want to programatically detect warnings and analyze them, you have to set an error handler function, and check its arguments. See the set_error_handler() function for details.

  • Like 1
Link to post
Share on other sites

For E_ERROR, you can't handle that. That error means that your code is stopping, you can't catch it and handle it. For warnings or notices, look at the link to set_error_handler. You can also use this to get information about the last error: http://www.php.net/manual/en/function.error-get-last.php

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...