亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch06_02.htm

?? 用perl編寫CGI的好書。本書從解釋CGI和底層HTTP協(xié)議如何工作開始
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<p><tt class="command">printenv</tt><a name="INDEX-1284" /></p></td><td /><td><p>Displays a list of environment variables and their values.</p></td></tr><tr><td><p><tt class="command">set</tt><a name="INDEX-1285" /></p></td><td><p><tt class="command">var</tt></p></td><td><p>Sets the value for a new or existing environment variable; thevariable only lasts throughout the current request (but it isavailable to CGI scripts or other SSI documents included in thisdocument).</p></td></tr><tr><td><p><tt class="command">if, elif</tt><a name="INDEX-1286" /></p></td><td><p><tt class="command">expr</tt></p></td><td><p>Starts conditional.</p></td></tr><tr><td><p><tt class="command">else</tt><a name="INDEX-1287" /></p></td><td /><td><p>Starts the "else" part of the conditional.</p></td></tr><tr><td><p><tt class="command">endif</tt><a name="INDEX-1288" /></p></td><td /><td><p>Ends conditional.</p></td></tr><tr><td><p><tt class="command">config</tt><a name="INDEX-1289" /></p></td><td /><td><p>Modifies various aspects of SSI.</p></td></tr><tr><td /><td><p><tt class="command">errmsg</tt></p></td><td><p>Default error message.</p></td></tr><tr><td /><td><p><tt class="command">sizefmt</tt></p></td><td><p>Format for size of the file.</p></td></tr><tr><td /><td><p><tt class="command">timefmt</tt></p></td><td><p>Format for date and time.</p></td></tr></table></div><a name="ch06-4-fm2xml" /><div class="sect2"><h3 class="sect2">6.2.3. Environment Variables</h3><p>You can insert the values of <a name="INDEX-1290" /><a name="INDEX-1291" />environment<a name="INDEX-1292" /> <a name="INDEX-1,293" />variables in an otherwise static HTMLdocument. Here is an example of a document that will contain theserver name, the user's remote host, and the current local dateand time:</p><blockquote><pre class="code">&lt;HTML&gt;&lt;HEAD&gt;    &lt;TITLE&gt;Welcome!&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;Welcome to my server at &lt;!--#echo var="SERVER_NAME"--&gt;...&lt;/H1&gt;&lt;HR&gt;Dear user from &lt;!--#echo var="REMOTE_HOST"--&gt;,&lt;P&gt;There are many links to various CGI documents throughout the Web,so feel free to explore.&lt;P&gt;&lt;HR&gt;&lt;ADDRESS&gt;Webmaster (&lt;!--#echo var="DATE_LOCAL"--&gt;)&lt;/ADDRESS&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre></blockquote><p><a name="INDEX-1294" /><a name="INDEX-1295" />In this example, we usethe<a name="INDEX-1296" /><a name="INDEX-1297" /> <em class="emphasis">echo</em> SSIcommand with the <em class="emphasis">var</em> attribute to display the<a name="INDEX-1298" /> <a name="INDEX-1,299" /><a name="INDEX-1300" />IP name or address of the servingmachine, the remote host name, and the local time. All<a name="INDEX-1301" />environment variables thatare available to CGI programs are also available to SSI directives.There are also a few variables that are exclusively available for usein SSI directives, such as<a name="INDEX-1302" />DATE_LOCAL, which contains the currentlocal time. Another is <a name="INDEX-1303" /> <a name="INDEX-1,304" />DATE_GMT, whichcontains the time in Greenwich Mean Time:</p><blockquote><pre class="code">The current GMT time is: &lt;!--#echo var="DATE_GMT" --&gt;</pre></blockquote><p>Here is another example that uses some of these exclusive SSIenvironment variables to output information about the currentdocument:</p><blockquote><pre class="code">&lt;H2&gt;File Summary&lt;/H2&gt;&lt;HR&gt;The document you are viewing is:  &lt;!--#echo var="DOCUMENT_NAME"--&gt;,which you can access it a later time by opening the URL to:&lt;!--#echo var="DOCUMENT_URI"--&gt;.&lt;HR&gt;Document last modified on &lt;!--#echo var="LAST_MODIFIED"--&gt;.</pre></blockquote><p>This will display the <a name="INDEX-1305" /> <a name="INDEX-1,306" />name, URL, and modification time for thecurrent HTML document.</p><p>For a listing of CGI environment variables, refer to <a href="ch03_01.htm">Chapter 3, "The Common Gateway Interface"</a>. <a href="ch06_02.htm#ch06-59530">Table 6-2</a> shows theadditional variables available to SSI pages.</p><a name="ch06-59530" /><h4 class="objtitle">Table 6-2. Additional Variables Available to SSI Pages </h4><table border="1"><tr><th><p>Environment Variable</p></th><th><p>Description</p></th></tr><tr><td><p><a name="INDEX-1307" />DOCUMENT_NAME</p></td><td><p>The current filename</p></td></tr><tr><td><p><a name="INDEX-1308" />DOCUMENT_URI</p></td><td><p>Virtual path to the file</p></td></tr><tr><td><p><a name="INDEX-1309" />QUERY_STRING_UNESCAPED</p></td><td><p>Unencoded query string with all shell metacharacters escaped with"\"</p></td></tr><tr><td><p><a name="INDEX-1310" />DATE_LOCAL</p></td><td><p>Current date and time in the local time zone</p></td></tr><tr><td><p><a name="INDEX-1311" />DATE_GMT</p></td><td><p>Current date and time in GMT</p></td></tr><tr><td><p><a name="INDEX-1312" />LAST_MODIFIED</p></td><td><p>Last modification date and time for the file requested by the browser</p></td></tr></table></div><a name="ch06-20335" /><div class="sect2"><h3 class="sect2">6.2.4. Tailoring SSI Output</h3><p><a name="INDEX-1313" /><a name="INDEX-1314" /><a name="INDEX-1315" /><a name="INDEX-1316" /><a name="INDEX-1317" />The<em class="emphasis">config</em> command allows you to select the mannerin which error messages, file size information, and<a name="INDEX-1318" />date and timeare displayed. For example, if you use the<em class="emphasis">include</em> command to insert a nonexisting file,the server will output a default error message like the following:</p><blockquote><pre class="code">[an error occurred while processing this directive]</pre></blockquote><p>By using the <em class="emphasis">config</em> command, you can modify thedefault error message. If you want to set the message to"[error-contact webmaster]" you can use the following:</p><blockquote><pre class="code">&lt;!--#config errmsg="[error-contact webmaster]" --&gt;</pre></blockquote><p>You can also set the file size format that the server uses whendisplaying information with the<em class="emphasis">fsize</em><a name="INDEX-1319" /> command. For example, this command:</p><blockquote><pre class="code">&lt;!--#config sizefmt="abbrev" --&gt;</pre></blockquote><p>will force the server to display the file size rounded to the nearestkilobyte (KB) or megabyte (MB). You can use the argument"bytes" to set the display as a byte count:</p><blockquote><pre class="code">&lt;!--#config sizefmt="bytes" --&gt;</pre></blockquote><p>Here is how you can change the time format:</p><blockquote><pre class="code">&lt;!--#config timefmt="%D (day %j) at %r" --&gt;My signature was last modified on: &lt;!--#flastmod virtual="/address.html"--&gt;.</pre></blockquote><p>The output will look like this:</p><blockquote><pre class="code">My signature was last modified on: 09/22/97 (day 265) at 07:17:39 PM</pre></blockquote><p><a name="INDEX-1320" /> <a name="INDEX-1,321" /> <a name="INDEX-1,322" />The <tt class="literal">%D</tt>format inserts the current date in <tt class="literal">mm/dd/yy</tt>format, <tt class="literal">%j</tt> inserts the day of the year, and<tt class="literal">%r</tt> the current time in <tt class="literal">hh/mm/ss</tt><tt class="literal">AM|PM</tt> format. <a href="ch06_02.htm#ch06-35093">Table 6-3</a> listsall the data and time formats you can use.</p><a name="ch06-35093" /><h4 class="objtitle">Table 6-3. Time and Date Formats</h4><table border="1"><tr><th><p>Format</p></th><th><p>Value</p></th><th><p>Example</p></th></tr><tr><td><p><tt class="literal">%a</tt></p></td><td><p>Day of the week abbreviation</p></td><td><p>Sun</p></td></tr><tr><td><p><tt class="literal">%A</tt></p></td><td><p>Day of the week</p></td><td><p>Sunday</p></td></tr><tr><td><p><tt class="literal">%b</tt></p></td><td><p>Month name abbreviation</p></td><td><p>Jan</p></td></tr><tr><td><p><tt class="literal">%B</tt></p></td><td><p>Month name</p></td><td><p>January</p></td></tr><tr><td><p><tt class="literal">%d</tt></p></td><td><p>Date</p></td><td><p>01 (<em class="emphasis">not</em> 1)</p></td></tr><tr><td><p><tt class="literal">%D</tt></p></td><td><p>Date as <tt class="literal">%m/%d/%y</tt></p></td><td><p>06/23/95</p></td></tr><tr><td>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区动态图| 亚洲精品国产第一综合99久久| 中文字幕乱码一区二区免费| 亚洲福中文字幕伊人影院| 91丨porny丨在线| 五月婷婷久久丁香| 久久久久综合网| 成人做爰69片免费看网站| 亚洲三级小视频| 日韩视频免费观看高清完整版 | 欧美日韩一级二级三级| 婷婷开心激情综合| 国产婷婷一区二区| 欧美日韩在线观看一区二区| 日本va欧美va欧美va精品| 欧美一级理论性理论a| 成人综合激情网| 亚洲国产精品一区二区久久恐怖片| 欧美成人伊人久久综合网| 波多野结衣中文一区| 日本va欧美va精品| 亚洲欧洲三级电影| 精品噜噜噜噜久久久久久久久试看| 成人激情av网| 精彩视频一区二区三区| 性做久久久久久免费观看欧美| 精品福利一区二区三区| 日韩一级完整毛片| 一本久道久久综合中文字幕 | 三级久久三级久久久| 亚洲欧美综合色| 国产人成亚洲第一网站在线播放 | 亚洲国产日韩在线一区模特| 国产精品视频yy9299一区| 久久婷婷综合激情| 精品国产精品网麻豆系列| 日韩午夜av电影| 久久99精品国产.久久久久| 欧美成人一级视频| 国产ts人妖一区二区| 国产精品一二二区| 播五月开心婷婷综合| 色综合久久天天| 一本在线高清不卡dvd| 欧美亚一区二区| 欧美一区二区三级| 日韩欧美亚洲另类制服综合在线| 日韩欧美中文字幕公布| 在线不卡欧美精品一区二区三区| 欧美一区二区播放| 国产视频一区二区在线| 亚洲黄色在线视频| 麻豆国产一区二区| 国产精品一级黄| 欧美日韩亚洲综合| 久久久久久**毛片大全| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲乱码中文字幕综合| 老司机一区二区| 在线日韩av片| 国产日产欧美一区二区视频| 亚洲免费观看高清完整版在线观看| 人人精品人人爱| 国产精品综合久久| 欧美三级在线视频| 亚洲女人小视频在线观看| 国产一区二三区好的| 欧美中文字幕一区二区三区亚洲| 日韩欧美国产一二三区| 亚洲va欧美va国产va天堂影院| 国产高清久久久久| 国产色一区二区| 国产老肥熟一区二区三区| 精品久久免费看| 日本在线播放一区二区三区| 国产在线国偷精品免费看| 欧美一级二级三级蜜桃| 日韩黄色片在线观看| 欧美精品视频www在线观看| 一区二区三区美女| 在线观看av不卡| 午夜不卡av免费| 日韩欧美一二三四区| 国模冰冰炮一区二区| 国产欧美日本一区视频| 国产一区不卡在线| 中文字幕在线一区免费| 99精品视频中文字幕| 亚洲欧美电影一区二区| 欧美视频一区二区在线观看| 日韩1区2区日韩1区2区| 26uuu国产一区二区三区| 丁香激情综合国产| 一级女性全黄久久生活片免费| 5858s免费视频成人| 国产一区二区三区av电影| 最新国产の精品合集bt伙计| 在线看国产日韩| 亚洲.国产.中文慕字在线| 欧美大片一区二区三区| 色综合天天综合给合国产| 图片区小说区区亚洲影院| 亚洲国产精品精华液ab| 欧美电影在线免费观看| 91在线视频在线| 国产精品中文字幕日韩精品| 亚洲自拍偷拍综合| 国产日韩欧美在线一区| 欧美精三区欧美精三区| 99久久婷婷国产精品综合| 久久精品国产免费| 日韩激情在线观看| 亚洲制服丝袜在线| 亚洲人成精品久久久久久| 久久精品亚洲精品国产欧美kt∨| 欧美日韩国产精选| 欧美色偷偷大香| 在线观看一区不卡| 色婷婷精品久久二区二区蜜臂av| 青青草91视频| 理论电影国产精品| 久久99精品视频| 粉嫩一区二区三区在线看| 国产91精品欧美| 99热99精品| 欧美调教femdomvk| 3d动漫精品啪啪一区二区竹菊| 91国偷自产一区二区三区观看| 色综合色综合色综合| 欧洲一区二区三区在线| 欧美一区二区三区视频在线| 欧美成人官网二区| 综合av第一页| 视频一区中文字幕| 国产亚洲午夜高清国产拍精品| 91香蕉视频污在线| 成人免费高清在线观看| 色婷婷综合久久久久中文| 欧美天堂一区二区三区| 26uuu久久天堂性欧美| 国产精品日产欧美久久久久| 午夜欧美大尺度福利影院在线看| 美女在线视频一区| 欧美色综合天天久久综合精品| 欧美精品乱码久久久久久按摩| 精品剧情在线观看| 亚洲综合在线观看视频| 美女网站色91| 欧美日韩国产小视频| 国产精品天干天干在线综合| 美女在线观看视频一区二区| 91黄色激情网站| 亚洲日本乱码在线观看| 国产精品996| 欧美激情综合在线| 麻豆91精品视频| 欧美精品九九99久久| 一区二区视频免费在线观看| 粉嫩av亚洲一区二区图片| 欧美精品一区二区三区久久久| 亚洲国产视频一区| 欧美综合亚洲图片综合区| 一区二区三区日韩精品视频| 91麻豆自制传媒国产之光| 国产精品三级av| 91精品办公室少妇高潮对白| 中文字幕欧美一| 91在线精品一区二区| 亚洲免费电影在线| 欧美日韩aaaaaa| 美女国产一区二区| 日韩一区二区三区免费看| 麻豆精品视频在线| 国产日韩欧美制服另类| 91视频国产观看| 一区二区在线观看视频| 7777精品伊人久久久大香线蕉超级流畅 | 丁香五精品蜜臀久久久久99网站| 精品三级在线看| 一区二区三区精品视频| 欧美视频你懂的| 美女网站一区二区| 日韩一区二区精品葵司在线| 免费成人你懂的| 国产精品青草久久| 日韩视频在线永久播放| 99亚偷拍自图区亚洲| 狠狠色丁香久久婷婷综| 国产精品天干天干在观线| 91精品国产欧美一区二区| 99re这里只有精品6| 国产精品99久久久久久宅男| 亚洲妇女屁股眼交7| 成人免费一区二区三区视频 | 99久久精品99国产精品| 秋霞成人午夜伦在线观看| 亚洲第一精品在线| 一区二区三区欧美视频| 亚洲最色的网站| 亚洲在线免费播放|