php - Loading the 500.shtml page when there is error -


file.php

<?php ini_set('display_errors', 0); if(){ echo 'test'; ?> 

i want hide error , show 500.shtml page, see google chrome error page.

// 500.shtml

 <!doctype html public "-//ietf//dtd html 2.0//en"> <html><head> <title>500 internal server error</title> </head><body> <h1>internal server error</h1> server encountered internal error or misconfiguration , unable complete request.<p> please contact server administrator , inform them of time error occurred, , might have done may have caused error.<p> more information error may available in server error log.<p> </body></html> 

chrome shows it's own page 5xx-errors.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -