note 91244 added to class.errorexception

From: Date: Mon, 01 Jun 2009 22:00:11 +0000
Subject: note 91244 added to class.errorexception
Groups: php.notes 
Request: Send a blank email to php-notes+get-156264@lists.php.net to get a copy of this message
If you want to control when the exception will be display or when not, you can change the value and enter if condition statement: <?php function lockdown($exception) { echo " <strong>lockdown:</strong> " , $exception->getMessage(); } $lockdown = true; //you can change to false if you want to disable the lockdown. if ($lockdown){ set_exception_handler('lockdown'); throw new Exception('the website is under construction, we will be back soon'); } ?> the output will be: lockdown: the website is under construcytion, we will be back soon and nothing else will be shown in the entire website, just the lockdown comment. ---- Server IP: 212.199.163.191 Probable Submitter: 79.182.241.234 ---- Manual Page -- http://www.php.net/manual/en/class.errorexception.php Edit -- https://master.php.net/note/edit/91244 Del: integrated -- https://master.php.net/note/delete/91244/integrated Del: useless -- https://master.php.net/note/delete/91244/useless Del: bad code -- https://master.php.net/note/delete/91244/bad+code Del: spam -- https://master.php.net/note/delete/91244/spam Del: non-english -- https://master.php.net/note/delete/91244/non-english Del: in docs -- https://master.php.net/note/delete/91244/in+docs Del: other reasons-- https://master.php.net/note/delete/91244 Reject -- https://master.php.net/note/reject/91244 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156264) next »