Jump to content

Need help enabiling html_errors


eldan88

Recommended Posts

Hey,

 

 I have set html_errors  to "On" my php.ini settings. But  when I create 3 custom error messages, they don't render as HTML. Just plain text.

 

Any suggestions on how i can solve this?

 

Below is my code and how it out puts on the browser.

 

Any help would be really appreciated!

   <?php trigger_error('Custom Notice', E_USER_NOTICE);
      trigger_error('Custom Warning', E_USER_WARNING);
      trigger_error('Custom error', E_USER_ERROR); 

?>

post-125484-0-50992500-1376007404_thumb.png

post-125484-0-61547800-1376007412_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/280970-need-help-enabiling-html_errors/
Share on other sites

I believe that special formatting happens through the xdebug extension, but you can get links in the regular error messages with the docref_root setting.

hey requinix. Yes you are right. I have configured xdebug and restarted my ubunutu OS and now it is showing correctly. Thank you so much for your help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.