.htaccess - Make PHP Output Errors As HTML Comment -
i have production website not have access full file system; specifically, can't view error log. site running under iis. however, can edit php ini. there page not loading. not want enable errors across entire site, don't want risk sensitive information being revealed.
is there way make php output errors wrapped in <!-- -->
(a comment) , not make visible users unless check source?
is there way make php output errors wrapped in <!-- -->
yes there built-in function. looking set_error_handler. juste copy/paste example #1 php doc , replace markup html comment markup.
Comments
Post a Comment