Re: include a page and if doesn't found then 'exit;'
If you want the program to just stop running, use require() instead of include... otherwise..,
PHP Code:
if(!include('somefile.html')) {
exit("error!");
}
It returns false if the include failed. You might need to stick a @ in front as well to surpress an Warnings that might be displayed. (can't get error reporting working properly on my mac :\)