eldan88 Posted August 9, 2013 Share Posted August 9, 2013 (edited) 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); ?> Edited August 9, 2013 by eldan88 Quote Link to comment Share on other sites More sharing options...
requinix Posted August 9, 2013 Share Posted August 9, 2013 You see the bolding in the messages? That's not plain text. What are you trying to get out of them? Quote Link to comment Share on other sites More sharing options...
eldan88 Posted August 9, 2013 Author Share Posted August 9, 2013 I was going through a video tutorial, and the author had them errors in an html table format, and the error links are clickable that goes the php manual. Quote Link to comment Share on other sites More sharing options...
requinix Posted August 9, 2013 Share Posted August 9, 2013 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. Quote Link to comment Share on other sites More sharing options...
Solution eldan88 Posted August 11, 2013 Author Solution Share Posted August 11, 2013 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.