$label_num = '0';?>
優質方案
功能選單
流量統計
yahoo!奇摩webmaster
$label_num = '1';?>
什麼是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 |
| 回上頁 |
$label_num = '2';?>
