Copy CodeThe code is as follows:
Fix 404 Pages:
Header (' http/1.1 OK ');
Set 404 Header:
Header (' http/1.1 404 Not Found ');
Set Moved permanently header (Good for redrictions)
Use with location header
Header (' http/1.1 301 Moved permanently ');
Redirect to a new location:
Header (' location:http://www.example.org/');
Redrict with delay:
Header (' refresh:10; url=http://www.example.org/');
print ' You'll be redirected in ten seconds ';
You could also use the HTML syntax://
Header (' content-transfer-encoding:binary ');
Load the file to Send:readfile (' example.zip ');
Disable caching of the current document:
Header (' Cache-control:no-cache, No-store, max-age=0, Must-revalidate ');
Header (' Expires:mon, Jul 1997 05:00:00 GMT ');
Date in the Pastheader (' Pragma:no-cache ');
Set Content Type:
Header (' content-type:text/html; charset=iso-8859-1 ');
Header (' content-type:text/html; Charset=utf-8 ');
Header (' Content-type:text/plain ');
Plain text file
Header (' Content-type:image/jpeg ');
JPG picture
Header (' Content-type:application/zip ');
ZIP file
Header (' content-type:application/pdf ');
PDF file
Header (' Content-type:audio/mpeg ');
Audio MPEG (MP3,...) file
Header (' Content-type:application/x-shockwave-flash ');
Flash animation//show Sign In box
Header (' http/1.1 401 Unauthorized ');
Header (' Www-authenticate:basic realm= ' Top Secret ');
print ' Text that would be displayed if the user hits cancel or ';
print ' enters wrong login data ';
?>
http://www.bkjia.com/PHPjc/313653.html www.bkjia.com true http://www.bkjia.com/PHPjc/313653.html techarticle Copy the code as follows:? PHP//fix 404 Pages:header (' http/1.1 OK ');//Set 404 Header:header (' http/1.1 404 Not Found ');//S ET Moved permanently header (Good for Redricti ...