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

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

?? cgic.html

?? 一般的UNIX系統都支持ANSI C,增加相應的庫函數(和相應的h文件)就可以實現CGI,用于CGI編程的ANSI C庫
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<p><strong>Note for Windows Programmers:</strong> you must use a modern32-bit compiler. Visual C++ 2.0 or higher, Borland C++ and themingw32 gcc compiler are all appropriate, as is cygwin. Do <strong>NOT</strong> use an ancient 16-bit DOS executable compiler, please.<blockquote><h4>What Operating System Does Your WEB SERVER Run?</h4>Remember, the computer on your desk is usually NOT your web server.Compiling a Windows console executable will not give you a CGI program thatcan be installed on a Linux-based server. </blockquote>Your web browser should inquire whether to save the file to diskwhen you select one of the links below. Under Unix and compatibleoperating systems, save it, then issue the followingcommands to unpack it:<pre>gunzip cgic202.tar.gztar -xf cgic202.tar</pre>This should produce the subdirectory 'cgic202', which will containthe complete cgic distribution for version 2.02, including a copy of this documentation in the file cgic.html.<p>Under Windows and compatible operating systems, save it,open a console ("DOS") window, and issue the following commands to unpack it:<pre>unzip /d cgic202.zip</pre>Or use the unzip utility of your choice.<p>This command also produces the subdirectory 'cgic201', which will containthe complete cgic distribution for version 2.0, including a copy of this documentation in the file cgic.html.<p>cgic is available via the web from www.boutell.com:<ul><li><a href="http://www.boutell.com/cgic/cgic202.tar.gz">Obtain cgic: gzipped tar file</a><li><a href="http://www.boutell.com/cgic/cgic202.zip">Obtain cgic: .ZIP file</a></ul><h3><a name="build">Building cgic: a sample application</a></h3>The sample application 'cgictest.c' is provided as part of thecgic distribution. This CGI program accepts input submittedby the form cgictest.html. <p>On a Unix system, you can build cgictest simply by typing'make cgictest.cgi'. cgic.c and cgictest.c will be compiled and linkedtogether to produce the cgictest application. Under non-Unixoperating systems, you will need to create and compile an appropriateproject containing the files cgic.c and cgictest.c. <p><strong>IMPORTANT:</strong> after compiling cgictest.cgi, you willneed to place it in a location on your server system which isdesignated by your server administrator as an appropriate locationfor CGI scripts. Some servers are configured to recognize anyfile ending in .cgi as a CGI program when it is found in anysubdirectory of the server's web space, but this is not alwaysthe case! The right locations for CGIprograms vary greatly from one server to another. Resolvingthis issue is between you, your web server administrator,and your web server documentation. Before submitting a bugreport for cgic, make certain that the CGI example programswhich came with your server <em>do</em> work for you. Otherwiseit is very likely that you have a server configuration problem.<p>Once you have moved cgictest.cgi (or cgictest.exe, under Windows)to an appropriate cgi directory,use the web browser of your choice to access the URL at whichyou have installed it (for instance, <code>www.mysite.com/cgi-bin/cgictest.cgi</code>).Fill out the various fields in any manner you wish, thenselect the SUBMIT button.<p>If all goes well, cgictest.cgi will respond with a page whichindicates the various settings you submitted. If not,please reread the section above regarding the correct location inwhich to install your CGI program on your web server.<h3><a name="nocompile">What to do if it won't compile</a></h3><ul><li><strong>Are you using Visual C++ or Borland C++? Did you forget to addcgic.c to your project?</strong><li><strong>Make sure you are using an ANSI C or C++ compiler.</strong>(All of the Windows compilers are ANSI C compliant.)</ul>If none of the above proves effective, please see thesection regarding <a href="#support">support</a>.<h3><a name="howto">How to write a cgic application</a></h3><em>Note: </em> All cgic applications must be linked to the cgic.c moduleitself. How to do this depends on your operating system; under Unix,just use the provided Makefile as an example.<p>Since all CGI applications must perform certain initialtasks, such as parsing form data and examiningenvironment variables, the cgic library provides itsown main() function. When you write applications thatuse cgic, you will begin your own programs by writinga cgiMain() function, which cgic will invoke whenthe initial cgi work has been successfully completed. Yourprogram must also be sure to #include the file cgic.h.<p><strong>Important:</strong> if you write your own main()function, your program will not link properly. Your owncode should begin with cgiMain(). The libraryprovides main() for you. (Those who prefer different behaviorcan easily modify cgic.c.)<p>Consider the cgiMain function of cgictest.c:<p><PRE>int cgiMain() {#ifdef DEBUG	LoadEnvironment();#endif /* DEBUG */	/* Load a previously saved CGI scenario if that button		has been pressed. */	if (cgiFormSubmitClicked("loadenvironment") == cgiFormSuccess) {		LoadEnvironment();	}	/* Set any new cookie requested. Must be done *before*		outputting the content type. */	CookieSet();	/* Send the content type, letting the browser know this is HTML */	cgiHeaderContentType("text/html");	/* Top of the page */	fprintf(cgiOut, "&lt;HTML&gt;&lt;HEAD&gt;\n");	fprintf(cgiOut, "&lt;TITLE&gt;cgic test&lt;/TITLE&gt;&lt;/HEAD&gt;\n");	fprintf(cgiOut, "&lt;BODY&gt;&lt;H1&gt;cgic test&lt;/H1&gt;\n");	/* If a submit button has already been clicked, act on the 		submission of the form. */	if ((cgiFormSubmitClicked("testcgic") == cgiFormSuccess) ||		cgiFormSubmitClicked("saveenvironment") == cgiFormSuccess)	{		HandleSubmit();		fprintf(cgiOut, "&lt;hr&gt;\n");	}	/* Now show the form */	ShowForm();	/* Finish up the page */	fprintf(cgiOut, "&lt;/BODY&gt;&lt;/HTML&gt;\n");	return 0;}</PRE>Note the DEBUG #ifdef. If DEBUG is defined at compile time, either byinserting the line "#define DEBUG 1" into the program or by settingit in the Makefile or other development environment, then theLoadEnvironment function is invoked. This function calls <a href="#cgiReadEnvironment">cgiReadEnvironment()</a> to restore a captured CGI environment for debugging purposes. Seealso the discussion of the <a href="#debug">capture</a> program, which isprovided for use in CGI debugging. Because this is a test program,the <a href="#cgiFormSubmitClicked">cgiFormSubmitClicked</a> function isalso called to check for the use of a button that requests the reloadingof a saved CGI environment. A completed CGI program typically wouldnever allow the end user to make that decision.<h4>Setting Cookies</h4>Next, one of the cgiHeader functions should be called.This particular program demonstrates many features, includingthe setting of cookies. If the programmer wishes to set a cookie,the cookie-setting function must be calledfirst, before other headers are output. This is done by theCookieSet() function of cgictest.c:<pre>void CookieSet(){	char cname[1024];	char cvalue[1024];	/* Must set cookies BEFORE calling 		cgiHeaderContentType */	cgiFormString("cname", cname, sizeof(cname));		cgiFormString("cvalue", cvalue, sizeof(cvalue));		if (strlen(cname)) {		/* Cookie lives for one day (or until 			browser chooses to get rid of it, which 			may be immediately), and applies only to 			this script on this site. */			cgiHeaderCookieSetString(cname, cvalue,			86400, cgiScriptName, cgiServerName);	}}</pre>Since this is a test program, the <a href="#cgiFormString">cgiFormString</a> function is used to fetch the name and value from the form previously filledin by the user. Normally, cookie names and values are chosen to meet theneeds of the programmer and provide a means of identifying the sameuser again later.<p>The <a href="#cgiHeaderCookieSetString">cgiHeaderCookieSetString</a>function sets the cookie by requesting that the web browser store it.<strong>There is never any guarantee that this will happen!</strong>Many browsers reject cookies completely; others do not necessarily keepthem as long as requested or return them with their values intact.Always code defensively when using cookies.<p>The cname and cvalue parameters are of course the namd and value forthe cookie. The third argument is the time, in seconds, that thecookie should "live" on the browser side before it expires; in thiscase it has been set to 86,400 seconds, which is exactly one day. <strong>The browser may or may not respect this setting, as with everythingelse about cookies.</strong><p>The fourth argument identifies the "path" within the web site for whichthe cookie is considered valid. A cookie that should be sent backfor every access to the site should be set with a path of <code>/</code>.In this case the cookie is relevant only to the CGI program itself, so<code><a href="#cgiScriptName">cgiScriptName</a></code> (the URL of the CGI program, not including thedomain name) is sent. Similarly, a cookie can be considered relevantto a single web site or to an entire domain, such as <code>www.boutell.com</code> or the entire <code>.boutell.com</code>domain. In this case, the current site on which the program is runningis the only relevant site, so <code><a href="#cgiServerName">cgiServerName</a></code> is usedas the domain.<h4>Outputting the Content Type Header</h4>Next, <a href="#cgiHeaderContentType">cgiHeaderContentType()</a> is called to indicate the MIME type of the document being output, in this case "text/html" (a normal HTML document). A few other common MIME types are"image/gif", "image/jpeg" and "audio/wav". <p>Note that <a href="#cgiHeaderStatus">cgiHeaderStatus()</a> or <a href="#cgiHeaderLocation">cgiHeaderLocation()</a> could havebeen invoked instead to output an error code or redirect therequest to a different URL. Only one of the cgiHeader functionsshould be called in a single execution of the program.<p><strong>Important:</strong> one of the cgiHeader functions,usually <a href="#cgiHeaderContentType">cgiHeaderContentType()</a>, <em>must</em> be invoked before outputting any otherresponse to the user. Otherwise, the result will not be a validdocument and the browser's behavior will be unpredictable.You may, of course, output your own ContentType and otherheader information to <a href="#cgiOut">cgiOut</a> if you prefer. The cgiHeader functionsare provided as a convenience.<h4>Handling Form Submissions</h4>Like many CGI programs, cgictest makes decisions about the way itshould behave based on whether various submit buttons have been clicked.When either the testcgic or saveenvironment button is present, cgictestinvokes the HandleSubmit function, which invokes additional functions tohandle various parts of the form:<pre>void HandleSubmit(){	Name();	Address();	Hungry();	Temperature();	Frogs();	Color();	Flavors();	NonExButtons();	RadioButtons();	File();	Entries();	Cookies();	/* The saveenvironment button, in addition to submitting 		the form, also saves the resulting CGI scenario to 		disk for later replay with the 'load saved environment' 		button. */	if (cgiFormSubmitClicked("saveenvironment") == cgiFormSuccess) {		SaveEnvironment();	}}</pre><h4>Handling Text Input</h4>The Name() function of cgictest is shown below, in its simplestpossible form:<PRE>void Name() {        char name[81];        <a href="#cgiFormStringNoNewlines">cgiFormStringNoNewlines</a>("name", name, 81);        fprintf(cgiOut, "Name: ");        cgicHtmlEscape(name);        fprintf(cgiOut, "<BR>\n");}</PRE>The purpose of this function is to retrieve and display the name that wasinput by the user. Since the programmer has decided that names shouldbe permitted to have up to 80 characters, a buffer of 81 charactershas been declared (allowing for the final null character). The <a href="#cgiFormStringNoNewlines">cgiFormStringNoNewlines()</a>function is then invoked to retrieve the name and ensure thatcarriage returns are not present in the name (despite theincorrect behavior of some web browsers). The first argumentis the name of the input field in the form, the second argument

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区视频| 中文字幕国产一区二区| 欧美高清在线一区二区| 亚洲va中文字幕| 99久久精品一区| 国产精品亚洲人在线观看| 欧美日韩免费观看一区三区| 国产精品高清亚洲| 九九视频精品免费| 在线不卡中文字幕播放| 综合婷婷亚洲小说| 蜜臀91精品一区二区三区| 色噜噜夜夜夜综合网| 国产精品久久久久一区| 国产精品一区二区91| 宅男在线国产精品| 偷拍一区二区三区| 91成人免费网站| 亚洲精品视频自拍| youjizz国产精品| 韩国成人福利片在线播放| 欧美日韩国产一二三| 亚洲线精品一区二区三区| 色综合久久综合网97色综合| 国产精品久久国产精麻豆99网站| 国模娜娜一区二区三区| 精品国产免费久久| 日本成人在线视频网站| 激情深爱一区二区| 99久久精品99国产精品| 中文字幕巨乱亚洲| 高清不卡一区二区在线| 国产日韩欧美精品一区| 成人综合婷婷国产精品久久蜜臀 | 在线亚洲人成电影网站色www| 国产精品污www在线观看| 成人精品国产福利| 97se亚洲国产综合在线| 日本伊人色综合网| 欧美日韩日本视频| 美女性感视频久久| 2014亚洲片线观看视频免费| 狠狠色丁香久久婷婷综合丁香| 久久久久久久国产精品影院| 国产91精品露脸国语对白| 欧美美女一区二区在线观看| 日韩精品久久久久久| 日韩欧美卡一卡二| 精品无人区卡一卡二卡三乱码免费卡 | 1000精品久久久久久久久| 日韩视频免费直播| 欧美三级蜜桃2在线观看| 国产99久久久久| 美女脱光内衣内裤视频久久影院| 国产精品久久久久9999吃药| 亚洲精品一区二区三区蜜桃下载 | 色婷婷国产精品久久包臀| 国内成+人亚洲+欧美+综合在线| 亚洲已满18点击进入久久| 国产欧美日韩三区| 26uuu精品一区二区在线观看| 欧美日本在线播放| 色素色在线综合| 成人av午夜影院| 国产成人精品www牛牛影视| 麻豆精品一区二区三区| 日日夜夜精品视频天天综合网| 亚洲色图制服诱惑| 国产精品国产三级国产aⅴ入口| 精品国产伦一区二区三区观看方式| 欧美精品久久99久久在免费线| 91国偷自产一区二区使用方法| 高清免费成人av| 国产91在线|亚洲| 国产成人午夜精品影院观看视频| 精品系列免费在线观看| 开心九九激情九九欧美日韩精美视频电影 | 欧美一区国产二区| 欧美精品色综合| 这里只有精品99re| 欧美一级二级三级蜜桃| 日韩小视频在线观看专区| 日韩一区和二区| 日韩欧美一区中文| 欧美xxxxxxxx| 久久免费国产精品| 国产精品女上位| 亚洲视频图片小说| 亚洲人成影院在线观看| 夜夜嗨av一区二区三区中文字幕| 亚洲图片一区二区| 日韩高清一区二区| 韩国午夜理伦三级不卡影院| 国产精品白丝jk黑袜喷水| 国产酒店精品激情| 白白色 亚洲乱淫| 色综合婷婷久久| 欧美日韩色一区| 日韩欧美一区在线| 精品国产91亚洲一区二区三区婷婷| 久久亚洲私人国产精品va媚药| 国产精品女主播av| 亚洲免费观看高清完整| 日韩高清一区二区| 国产91富婆露脸刺激对白 | 94-欧美-setu| 欧美在线短视频| 欧美一区二区黄色| 国产天堂亚洲国产碰碰| 亚洲色图.com| 日本不卡1234视频| 国产成人精品影院| 欧美亚州韩日在线看免费版国语版| 欧美日韩成人激情| 久久久亚洲精华液精华液精华液| 国产精品国产精品国产专区不片 | 欧美在线视频全部完| 欧美一区二区久久| 中文字幕在线观看一区| 日韩精品亚洲一区二区三区免费| 国产一区二区网址| 91福利社在线观看| 久久久精品国产免大香伊| 亚洲男帅同性gay1069| 免费在线看成人av| 91啪亚洲精品| 精品国产第一区二区三区观看体验| 日韩一区在线播放| 久99久精品视频免费观看| 91尤物视频在线观看| 日韩精品中文字幕一区| 一色桃子久久精品亚洲| 久久国产精品区| 日本精品一级二级| 久久综合久久综合久久综合| 亚洲欧美视频一区| 国产在线精品国自产拍免费| 欧美日韩久久久一区| 久久婷婷国产综合精品青草| 亚洲五月六月丁香激情| 另类小说综合欧美亚洲| 欧美精三区欧美精三区| 日韩理论在线观看| 国产激情视频一区二区在线观看 | 欧美国产精品劲爆| 久久综合综合久久综合| 欧美日韩一区视频| 亚洲欧洲日韩在线| 丰满放荡岳乱妇91ww| 日韩无一区二区| 偷窥少妇高潮呻吟av久久免费| 色婷婷香蕉在线一区二区| 国产日韩欧美精品在线| 久久精品国产久精国产爱| 欧美日韩在线播放三区| 亚洲免费高清视频在线| 成人激情综合网站| 久久久久久久久伊人| 麻豆精品精品国产自在97香蕉| 欧美日韩在线三级| 亚洲综合视频在线| 色吊一区二区三区| 亚洲免费观看高清完整版在线观看熊| 国产成人在线观看免费网站| 欧美xxxxx牲另类人与| 人人狠狠综合久久亚洲| 欧美精品xxxxbbbb| 亚洲一区二区视频在线| 欧美中文字幕一区二区三区亚洲| 亚洲欧美激情插| 91麻豆蜜桃一区二区三区| 国产精品日韩精品欧美在线| 丁香六月久久综合狠狠色| 国产欧美一区在线| 波多野结衣视频一区| 国产欧美视频一区二区| 精品亚洲成a人| 国产视频一区在线观看| 国产超碰在线一区| 中文字幕在线不卡国产视频| 99精品1区2区| 一区二区国产盗摄色噜噜| 欧美专区在线观看一区| 午夜精品一区二区三区免费视频| 欧美人xxxx| 国产又粗又猛又爽又黄91精品| 91色视频在线| aaa欧美大片| 国产在线精品一区在线观看麻豆| 亚洲精品综合在线| 国产精品久久久一区麻豆最新章节| 欧美tickling挠脚心丨vk| 欧美日韩国产色站一区二区三区| 欧美一区二区三区精品| 国产精品综合一区二区三区| 国产精品久久久久影院老司| 欧美日韩视频专区在线播放| 亚洲欧美日韩系列| 处破女av一区二区| 成人听书哪个软件好|