返回列表 上一主題 發帖

5-4 檔頭資訊

5-4 檔頭資訊

5-4   檔頭資訊
檔頭資訊:網頁文件中被<HEAD>…</HEAD>標籤包括起來的文件資訊,常見的有文件抬頭(被<TITLE>…</TITLE>標籤包括起來)以及文件的類型、所使用的編碼字集等:
  1. <html>
  2. <head>
  3. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  4. <meta name="ProgId" content="FrontPage.Editor.Document">
  5. <meta http-equiv="Content-Type" content="text/html; charset=big5">
  6. <title>新增網頁1</title>
  7. </head>
  8. <body>
  9. 網頁的顯示內容
  10. </body>
  11. </html>
複製代碼
這些檔頭資訊我們都可以透過PHP的「header()」函數來做輸出:
header()函數格式
  1. int header ( string string [, bool replace [, int http_response_code]])
複製代碼
也就是:
  1. header(“網頁資訊名稱: 資訊內容”);
複製代碼
心安,平安   
發表任何無意義的感謝或灌水文章一律砍,珍惜帳號,請詳閱版規!!

        靜思自在 : 看別人不順眼,是自己修養不夠。
返回列表 上一主題