# Using include() in a die() statement?

**URL:** <https://forum.kirupa.com/t/using-include-in-a-die-statement/268737>\
**Category:** Uncategorized\
**Created:** [August 18, 2008, 10:20am UTC](https://forum.kirupa.com/t/using-include-in-a-die-statement/268737 "2008-08-18T10:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlk](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mlk](https://forum.kirupa.com/u/mlk)\
**Post date:** [August 18, 2008, 10:20am UTC](https://forum.kirupa.com/t/using-include-in-a-die-statement/268737/1 "2008-08-18T10:20:11Z")

</div>

Hello peeps.

I’ve done a tiny bit of research and can’t seem to find a way to combine the usefulness of the die() method (which interrupts your script if something screwed up) and that of the include.

I’m trying to create a better-looking error output (the usual mysql jibberish is confusing for the non-programmers), yet the die() methods only seems to output text to the browser.

Any help ?

(btw, I don’t want to code a whole webpage inside of the die() using die("\<html\>\<head\>…\</body\>\</html\>")
