die - Custom Error Message in Script Crash? PHP -
i've never worked advanced error handling, , can't find obvious answer searching.
in scope script (require_once
) how set custom "die" message?
generally users see page-load die no response. i'd direct them file regarding memory absolutely cannot miss solution.
you can kill script , output message using die() command
die("your message here");
you can throw custom exceptions in php 5+, , catch them , @ point output message users.
Comments
Post a Comment