What you did was an include file that started an IF statement, then some code, and then an include file that closed the IF statement from the first include file.
Presumably this was to stop the script from being executed if some condition was true.
If that is the case, then why not just call 'exit' if the IF is true?
A cleaner method would be to change the include file so that it contains a function.
This function can then be called by the script itself, and exit the script if required; like:
check_function:
function check_function()
{
if ($foo==$bar)
{
return true;
}
else
{
return false;
};
};
require('check_function.php');
if(!check_function())
{
exit;
};
this way, the script itself is in control over what happens if the check_function is true.