• 首頁
  • 關於我們
  • 機房介紹
  • 線上訂購
  • 聯絡我們

優質方案

    • 虛擬主機V方案(300元起)
    • 超值手工方案
    • 企業架站C方案(夯!!)
    • 網站專案客制化設計
    • 網站秘書
    • 獨立網址申請購買

功能選單

    • 首頁
    • 最新消息
    • 網頁設計素材
    • 訪客留言板
    • 討論板
    • FAQ問與答(站內)
    • 知識庫(相關領域)
    • 檔案下載
    • 線上熱銷中心
    • 優質連結
    • 投票區
    • 人才募集
    • 聯絡我們

流量統計

    • 總人數: 30904
    • 今日人數: 60

yahoo!奇摩webmaster

什麼是SSI (Server Side Includes)?

2010-03-18 00:00:00 刊登 / 338 人點閱
SSI是Server Side Include的縮寫.
意思是您可以在已經加入SSI的網頁中插入別人的網頁內容, 程式或檔案.
您必須遵守以下的要點,才可在您的域名中使用SSI .
1. 已加入了SSI指令的網頁必須以.shtml 或 .sht 作結, 而不是.html 或 .htm.
2. 所加入的資料的路徑必須是該網頁的相關路徑(Relative link), 而不是加入的資料的絕對路徑(Absolute link). 在您的域名上的SSI功能是由一個名為 "exec cgi command"所限制的. 意思是您可以在網頁中插入執行cgi 程式的能力.
Server Side Include 的格式是:您應該看到這個SSI 指令使用了相關路徑 *relative* URL (/cgi-bin/....) ,而不是網對路徑FULL URL. 這是使用SSI必須留意的地方. 例如我們想插入一個訪客計算器( counter.cgi) 到網頁上(index.html). 請緊記! 因為您想在網頁中使用SSI, 所以網頁必須以 .shtml 或 .sht 作結. 在這個例子中, 我們要把該頁命名為index.shtml.
SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology.
The decision of when to use SSI, and when to have your page entirely generated by some program, is usually a matter of how much of the page is static, and how much needs to be recalculated every time the page is served. SSI is a great way to add small pieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution. 
參考頁面 http://httpd.apache.org/docs/2.0/howto/ssi.html

回上頁

 

六十公里網路科技提供您最好的 虛擬主機, Hosting, 網站設計, 網頁設計, 企業架站 服務,電話:(03)280-5166,0913-523-001
本站內容歡迎轉載,轉載請務必註明來自本站,謝謝您的配合!!