SHTML - SSI技術(shù)_動(dòng)易Cms教程
概要:
什么是shtml SHTML語法 SHTML教程 格式 編寫 技術(shù)
使用SSI (Server Side Include)技術(shù)
想要找到既富有創(chuàng)意的平面設(shè)計(jì)人員,又有腳本開發(fā)經(jīng)驗(yàn)的人員,實(shí)在是太難了。而假如一個(gè)百分之百的頁面都是php腳本的網(wǎng)站,將為頁面維護(hù)帶來非常大的困難。而且使用了php的自動(dòng)加頭和加尾的方法,使得幾乎所有頁面都是語義不完整的,不能借助任何一款頁面設(shè)計(jì)工具工作,是另一個(gè)弊病。
利用SSI技術(shù),可以有效的將HTML網(wǎng)頁和CGI腳本邏輯上分開,也可以將重復(fù)的HTML元素抽象和獨(dú)立出來,減輕維護(hù)負(fù)擔(dān)。
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.
全文:
配置Apache,支持SSI
# This tells Apache that you want to permit files to # At linux or unix can use # You have to tell Apache which files should be parsed. AddType text/html .shtml AddHandler server-parsed .shtml |
SSI語法
-
Basic SSI directives Syntax
<!--#element attribute=value attribute=value ... -->
-
Today's date
<!--#c onfig timefmt="%Y/%m/%d %a %H:%M:%S" --> Today is <!--#e cho var="DATE_LOCAL" -->
-
Modification date of the file
This document last modified <!--#f lastmod file="index.html" -->
-
Including the results of a CGI program
<!--#i nclude virtual="/cgi-bin/counter.pl" --> <!--#i nclude virtual="/cgi-bin/example.cgi?argument=value" -->
You can use "#e xec cgi=" directive, but it can be disabled using the IncludesNOEXEC Option.
-
Including a standard footer
<!--#i nclude virtual="/footer.html" -->
-
Executing commands
<!--#e xec cmd="ls" -->
This feature is dangerous. You can allow SSI, but not the exec feature, with the IncludesNOEXEC argument to the Options directive.
- MAC錯(cuò)誤的解決方法
- 如何屏蔽動(dòng)易后臺(tái)導(dǎo)航里的某個(gè)功能菜單?
- 動(dòng)易.NET版本留言自動(dòng)選定欄目方法
- 動(dòng)易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開啟SiteWeaver6.8的支持,反對(duì)功能
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之四----動(dòng)易系統(tǒng)安裝篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之三----數(shù)據(jù)庫(kù)篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫(kù)修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動(dòng)易.net程序權(quán)限配置
- 為什么提示對(duì)Windows系統(tǒng)文件夾下的Temp目錄沒有訪問權(quán)限?
動(dòng)易Cms教程教程Rss訂閱Cms教程搜索
動(dòng)易Cms教程推薦
- 動(dòng)易2005 SP2 (0816)AC數(shù)據(jù)庫(kù)采集包含圖片出錯(cuò)解決方法
- FLV視頻內(nèi)容頁直接播放標(biāo)簽制作和使用說明
- 標(biāo)題前綴怎樣進(jìn)行修改
- 怎樣在內(nèi)容頁根據(jù)關(guān)鍵字顯示相關(guān)信息
- 測(cè)試RAM文件
- 文章頻道改博客模板
- 解決安裝siteweaver版本出現(xiàn)未指定的錯(cuò)誤
- 圖片中心的圖片內(nèi)容頁中,圖片太大把網(wǎng)頁撐破了怎么辦呢
- 在生成過程中發(fā)生錯(cuò)誤,錯(cuò)誤描述:Object variableWith block variable not set
- 解析修改前臺(tái)頁面顯示寬度大小的方法
- 相關(guān)鏈接:
- 教程說明:
動(dòng)易Cms教程-SHTML - SSI技術(shù)
。