Nap
12-03-2006, 09:08 PM
Hi,
I have a page I would like to protect by making people think it doesn't exist.
The PHP requires a parameter to be sent in the URL and if it's not there, I would like the browser to respond with the standard 404 Error - File not found!.
I have tried using:ob_end_clean();
header( 'HTTP/1.0 404 Not Found' );but it doesn't generate the error page. (Simply returns a blank page.) Do I need to build the header with other information?
Can anyone please help?
Cheers,
Nap
I have a page I would like to protect by making people think it doesn't exist.
The PHP requires a parameter to be sent in the URL and if it's not there, I would like the browser to respond with the standard 404 Error - File not found!.
I have tried using:ob_end_clean();
header( 'HTTP/1.0 404 Not Found' );but it doesn't generate the error page. (Simply returns a blank page.) Do I need to build the header with other information?
Can anyone please help?
Cheers,
Nap