How can i trigger 500 Internal Server Error or 404 Page Not Found Apache errors in PHP?
For 500 Internal Server Error i have tried
After such a knowledge-full discussion, i think there is no php code can display the by default 500 Internal Server Error.
The solution is :
1. Create a folder named http500 next to the php file.
2. Create a .htaccess file in it and add following code :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^])(.(*/
RewriteRule ^])((a-zA
header('location : http500/');