error_reporting(0); if(!include('include.txt')) echo "Include()'d text file not found!\n"; error_reporting(1); Take note of what the error_reporting() level is before changing it and use that instead of 1.