haku Posted May 30, 2008 Share Posted May 30, 2008 I'm creating a custom error page for http errors (400, 401, 403, 404, 500) that I will set with my .htaccess file. What I'm wondering is how I can get the status code in order to echo it to the page. Does anybody know how? Link to comment https://forums.phpfreaks.com/topic/107959-get-http-status-code/ Share on other sites More sharing options...
haku Posted May 30, 2008 Author Share Posted May 30, 2008 I fjust figured out the answer: $_SERVER['REDIRECT_STATUS']; Link to comment https://forums.phpfreaks.com/topic/107959-get-http-status-code/#findComment-553336 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.