Send a 404 status code to the browser
Header ("http/1.1 404 Not Found");
Or
Header ("http/1.1 404″");
Permanent redirection
Header ("location:http://weizhifeng.net/");//default is 301 Jump
Temporary redirection
Header ("http/1.1 302 Found");
Header ("location:http://weizhifeng.net/");
Download file
Header ("Content-type:text/plain"); Can replace the MIME type you need
Header (' content-disposition:attachment; filename= ' Weizhifeng.txt ');
ReadFile (' Weizhifeng.txt ');
Other header information can refer to http/1.1 specification
If you already have the output before the header, use the Ob_start () function.
http://www.bkjia.com/PHPjc/445995.html www.bkjia.com true http://www.bkjia.com/PHPjc/445995.html techarticle //Send 404 Status Code header (http/1.1 404 Not Found) to the browser, or header (http/1.1 404);//Permanent REDIRECT header (Location:http://weizhifeng. net/);//default is 301 Jump//...