2009-06-12 31 views
2

PHP允許您發送RAW HTTP標頭,它必須在任何內容之前發送。PHP的標題函數,一個可理解的列表?

例如(直接從PHP文檔):

<?php 
// We'll be outputting a PDF 
header('Content-type: application/pdf'); 

// It will be called downloaded.pdf 
header('Content-Disposition: attachment; filename="downloaded.pdf"'); 

// The PDF source is in original.pdf 
readfile('original.pdf'); 
?> 

但我在哪裏可以找到一個comprehendable列表或補習或指導有關該功能的所有可能的選擇嗎? W3schools等幫助不大。

回答