Is there an alternative to die?

Posted by TJDeatwiler on Stack Overflow See other posts from Stack Overflow or by TJDeatwiler
Published on 2011-01-15T02:49:38Z Indexed on 2011/01/15 2:53 UTC
Read the original article Hit count: 151

Filed under:

Sorry for the dramatic sounding title, just wanted to know if there is a way to prevent all types of PHP commands from executing EXCEPT one.

For example, now when I kill a script using die() my pages look half broken because the bottom part of the page's html failed to load since it was being brought in using the include() function.

So is there a way to tell PHP "don't allow any more commands to be executed except the include function" ?

© Stack Overflow or respective owner

Related posts about php