php - display exception on div block -


is possible display exception on particular div block?

    catch (exception $e) {         // want display message on html div block.         echo $e->getmessage();         exit;     } 

edit -> suppose have index.php file. , there div block called error. want show exception on <div id="error"> </div>

thanks

catch (exception $e) {         // want display message on html div block.         echo sprintf('<div>%s</div>', $e->getmessage());         exit;     } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -