您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > 第4章服务器进程和ASPServer对象
4ASPASPRequestResponseSessionApplicationASPServerServerASPASPServerASPIISASPServerASPASPServer•(SSI)•ServerSSI•Server•ServerASP•Server•ServerHTMLHTTPServerASPIIS5.0ASP3.0()Server4.1ASPWebJavaAppletHTMLActiveX()HTMLInternet1WebInternet(InternetServerApplicationProgrammingInterfaceISAPI)ISAPICstdinstdoutWebISAPIHTMLstdoutWebASPDLLIISISAPIIISssinc.dllIIS.shtml.shtm.stmWebPropertiesApplicationSettingConfiguration4-14-1ApplicationConfigurationssinc.dll4ASPServer99()ssinc.dllASP(asp.dll)ASPASP3.0ServerExecuteTransfer4.2(SSI)()WebstdinstdoutISAPICC++(Delphi)VBSSIASPIISSSIWebWebSSIASPIIS5.0ASPCGI#includeASPSSIWebASP4.2.1ASP#includeASP#include!--#include..--HTML()#include(URL)connect.inc100ASP3WroxWebDeverloper4-2HTML#include4-2Web1.ASPASP(.asp)#includeSSIASPssinc.dllSSI#include#includeASPASP#include4ASPServer101ssinc.dll%=strIncludeURL%2.WebASPIISWeb$DATANTFSWebWebIIS5.0$DATAWindowsNTFS$DATAASPURLIISISS4.0IIS.asp$DATA.asa$DATAasp.dll.inc.txtURLASP().aspASPASPASP()IIS5.0WindowsIIS5.0MicrosoftWebIISssinc.dllURL(VIRTUAL=filenameFILE=filename)WindowsIIS5.0ASPSSIWindows(ACL)SSI4.2.2#includeIIS(#includeASP)4-1102ASP34-1#include!--#includeFILE=usefulbits.inc--usefulbits.incFILE=..\scripts\myscr.incVIRTUAL!--#includeVIRTUAL=/mysite/usefulbits.inc--!--#includeVIRTUAL=../../thisbit/usefulbits.inc--#configSSI!--#configERRMSG=SSIProcessingError--SSI'SSIProcessingError'!--#configTIMEFMT=%A,%B%d%Y%H%M%S--SSISaturday,August14199910:34:50C!--#configSIZEFMT=BYTES--IISSIZEFMTABBREV(KB)#echoHTTP!--#echoVAR=SERVER_NAME--#exec!--#execCGI=/scripts/myapp.exe?valuel=this&value2=that--myapp.exeCGI!--#execCMD=cmd.exe/ciisreset/stop--(cmo.exe)msreset/stop/cCMOHKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/w3SVC/Parameters/SSIEnableCmdDirective1,!--#flastmodFILE=Default.asp--#includeVIRTUAL=/mysite/usefulbits.incVIRTUAL=../thisbit/usefulbits.inc#fsize!--#fsizeFILE=Default.asp--#includeVIRTUAL=/mysite/usefulbits.incVIRTUAL=../thisbit/usefulbits.inc1.IISRESETiisreset.exeIIS5.04ASPServer103InternetInternet(30)CMD#echoSSIC2.NETSTOPNETSTARTnet.exe()Internet()netnet[start|stop]service_namenetstopcisvcnetstartcisvcMicrosoftIndexingServiceCMD#echoSSIWindows2000netStartHelpHelpIndexnetcommands4.2.3Chapter04SSIDirectivesandtheASPServerObject(Chapter04Default.asp)4-34-3WebChapter04104ASP31.SSI/CGIServer-SideIncludeandCGIStatementsssi_cgi.stm.stmASP#exec()SSI4-44-4SSI/CGI(1)#includeIncludeFileswithSSIintro.incHTML<>ssi_cgi.stm(2)#config#fsize#flastmodDefault.asp#config•SSI••#fsize#flastmod4ASPServer105(3)#echo()#echoHTTPVARGVAR2.#exec#execSSIASPSeverObjectandSSIDirectivesUsingthe#echoServer-SideIncludeDirectiveTheSSI#execDirective4-5ASPssi_exec.asp.stm#exec(1)SSI#execWebSSIEnableCmdDirective(DWORD)14-6#execCMD#exec.stm106ASP34-5TheSSI#execDirectivenet4-6InternetServicesManager#exec.stm(execstart_cisvc.stmstop_cisvc.stm)PropertiesDirectorySecurityAnonymousaccessandauthenticationcontrolEditAuthenticationMethods4-74-7AnonymousaccessInternetExplorerBasicauthenticationIE/Yes4ASPServer107ServicesMMCIndexingService4-84-8(2)IndexingServiceWebMicrosoftIndexingServicecisvcMicrosoftIndexServercicontentindexerWeb(start_cisvc.stm)#exec(cmd.exe)netstart()4-94-9#execCMDcmd.exe/cnetstartcisvcSUBMIT108ASP3.stmstop_cisvc.stmnetstopnetstart4.3ASPServerISAPIWebRequest.ServerVariablesHTTP#echo#fsize#flastmodVBScriptJScript#execCGIASPServer#execCGI#execServer4.3.1ASPServerServer1.ServerServerASP4-24-2ServerScriptTimeout90()4ASPServer1092.ServerServer4-34-3ServerCreateObject(identifier)identifier()(global.asa)ClassID{clsidBD96C556-65A3...37A9}ProgIDADODB.ConnectionExecute(url)url()ExecuteGetLastError()ASPASPErrorASPASPErrorHTMLEncode(string)stringHTML&HTML<'>''&''"'MapPath(url)urlTransfer(url)url()ExecuteURLEncode(string)stringURL&URL%3F%26+4.3.2ASPApplicationProtectionASP1ASPObjectContextASPASPServerASPCreateObject1.VBScriptJscriptVBVBANewASPVBScriptJScriptVariants()VBVBACreateObjectGetObjectCreateObjectClassID()ProgID110ASP3GetObjectVBScriptCreateObjectGetObjectJScriptgetObjectVBscriptGetObjectJScriptActiveXObjectVBScriptCreateObjectJScriptnewVBNewVBScriptJScriptASPASP2.ASPASPASPObjectContextASPObjectContextASPRequestResponseApplicationSessionASPObjectContextIISCOM+hllhost.dll(Web)WebDLLHost.dllASPServerCreateObject3.ServerCreateObjectCreateObjectChapter04UsingtheASPServerObject4-10show_server.aspServerServerScriptTimeout904-11CreateanInstanceofaComponentProgIDClassIDActiveXProgIDADODB.Connection4ASPServer1114-10Chapter044-11ServerServer.CreateObjectACTIONFORMACTION112ASP3ASP(FORM)cmdCreateObjectProgIDProgIDServer.CreateObjectIsObject4-12ADODB.Connection4-12ADODB.ConnectionVB4ASPServer113VBScriptJSCriptIIS5.0/ASP3.0ASP4.3.3ASP3.0IIS5.0(server-sideredirection)Response.Redirect1.ASPResponse.RedirectHTTP(redirectionheader)WebHTTP302objectMovedLocationRedirect302objectMovedLocationHEADMETAHTTP-EQUIVHTTPResponse.RedirectTheobjectyourequestedhasbeenmovedandcanbefoundhereIIS4.0Response.RedirectAS
本文标题:第4章服务器进程和ASPServer对象
链接地址:https://www.777doc.com/doc-1599772 .html