国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 動易CMS > 正文

SHTML - SSI技術

2024-09-10 21:54:21
字體:
來源:轉載
供稿:網友

概要:

什么是shtml SHTML語法 SHTML教程 格式 編寫 技術

使用SSI (Server Side Include)技術

想要找到既富有創意的平面設計人員,又有腳本開發經驗的人員,實在是太難了。而假如一個百分之百的頁面都是php腳本的網站,將為頁面維護帶來非常大的困難。而且使用了php的自動加頭和加尾的方法,使得幾乎所有頁面都是語義不完整的,不能借助任何一款頁面設計工具工作,是另一個弊病。

利用SSI技術,可以有效的將HTML網頁和CGI腳本邏輯上分開,也可以將重復的HTML元素抽象和獨立出來,減輕維護負擔。

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
# be parsed for SSI directives.Options Includes
# At linux or unix can use
# Options Includes -IncludesNOEXEC
# win32 not use it
# You have to tell Apache which files should be parsed.AddType text/html .shtmlAddHandler 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.

共2頁上一頁12下一頁
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 屏南县| 清水河县| 萝北县| 东港市| 盘山县| 锡林郭勒盟| 鹤峰县| 威海市| 弥渡县| 桦甸市| 巫溪县| 中牟县| 浦城县| 顺平县| 抚顺市| 柯坪县| 汕尾市| 鄯善县| 桂平市| 将乐县| 凉山| 从江县| 额济纳旗| 博客| 永清县| 黄浦区| 松原市| 泰兴市| 安西县| 灵川县| 灌云县| 漳浦县| 吕梁市| 锦州市| 顺平县| 阳信县| 黔江区| 湘潭县| 增城市| 阿克陶县| 逊克县|