[thelist] Apache: Testing error pages
Liam Delahunty
liam at megaproducts.co.uk
Tue Feb 17 17:28:25 CST 2004
on 17/02/2004 22:34 Frank wrote:
>
> I've just finished setting up a bunch of error pages using .htaccess. I
> can easily test a 404. How does one go about verifying that the 401,
> 403, 500 and 503's work. I'm sure there's got to be a better way then
> actually breaking something, but if there's not, how do I go about this
> on my local machine?
If you have php you can force the headers:
http://uk.php.net/manual/en/function.header.php
Description
void header ( string string [, bool replace [, int http_response_code]])
The second optional http_response_code force the HTTP response code to
the specified value. (This parameter is available in PHP 4.3.0 and higher.)
> By the way, has anyone noticed? Error pages are FUN!
>
Only when they're intentional.
--
Kind regards, Liam Delahunty, Mega Products Ltd
12 Bury Place, London WC1A 2JL Fax: +44(0)871 224 7891
http://www.megaproducts.co.uk/ Internet Design & Development
More information about the thelist
mailing list