View Full Version : Simulate HTTP error

11-22-2007, 11:17 PM
I am writing software that needs to be able to recognize when HTTP error codes are received. I was wanting to know if it is possible with a .htaccess file or similar to force the webserver to send an error code instead of the requested page html.

11-23-2007, 04:28 PM
Easy in PHP.

header("HTTP/1.0 404 Not Found");

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum