I'm writing a page with a php-scripts surrounded by html.
The problem is, I need to stop processing one of the php scripts in the code without stopping parsing the entire file. When using die, the parsing stops after showing my die output. Ex:
<p>hello</p>
<?
if (!isset ($test)) {
die('error message');
}
code that should NOT be processed.
?>
<p>code that should be processed if dying</p>
Of course, it's a lot more complicated, but you get the idea.
Is there an easy way of accomplishing this? Grateful for all help...