You are here: Home Development PHP PHP: Send 404 Error Header
PHP: Send 404 Error Header PDF Print E-mail
User Rating: / 0
PoorBest 
Development - PHP
Written by Rick   
Friday, 06 June 2008 09:28

To return the proper header information in a file used as a 404 error page, enter the following line at the beginning of the document (Yes, before <!DOCTYPE> and <html> tags);

<php header("HTTP/1.0 404 Not Found"); ?> 

Comments (0)
Write comment
Your Contact Details:
Gravatar enabled
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):S
:!::?::idea::arrow:
Security
Please input the anti-spam code that you can read in the image.