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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -