???????? - ?????? http://www.haxv.top/ ?????? zh-cn http://www.haxv.top Copyright 2010 http://www.haxv.top, All Rights Reserved 2016/5/23 0:10:09 [Asp???]asp????ueditor?????????????????????????????? http://www.haxv.top//tech/5453.html ???????? Asp??? 2015/7/28 10:38:22 <p>?????iis??????????????????????asp????ueditor????????????????????????????????????firebug???????uploader.class.asp?д???fs.CreateFolder(path )???????????????????????????asp???????????????????е??????磺?????????e:\website\www.haxv.top\upload\image\20150529\???????e:????????????????????????????????????????????????????·??????????????????????????????·??????????????????????е????????e:????У???????????????<br style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/22px punctuation, ??????, Tohoma; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(68,68,68); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"/>?????????y????????????У???????????·????????????????ü???????ü?????·???μ????????????????????????????????????????????е???????asp??????uploader.class.asp???CheckOrCreatePath??????????£?<wbr/></p><p>Private&nbsp;<wbr/>Function&nbsp;<wbr/>CheckOrCreatePath(&nbsp;<wbr/>ByVal&nbsp;<wbr/>path&nbsp;<wbr/>)</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>Set&nbsp;<wbr/>fs&nbsp;<wbr/>=&nbsp;<wbr/>Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>Dim&nbsp;<wbr/>parts,serverpath</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>serverpath=lcase(Server.MapPath(&quot;/&quot;))</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>path=replace(lcase(path),serverpath,&quot;&quot;)&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/></p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>parts&nbsp;<wbr/>=&nbsp;<wbr/>Split(&nbsp;<wbr/>path,&nbsp;<wbr/>&quot;\&quot;&nbsp;<wbr/>)</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>path&nbsp;<wbr/>=&nbsp;<wbr/>&quot;&quot;&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/></p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/><wbr/><wbr/><wbr/><wbr/><wbr/><wbr/><wbr/></p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>For&nbsp;<wbr/>Each&nbsp;<wbr/>part&nbsp;<wbr/>in&nbsp;<wbr/>parts</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>path&nbsp;<wbr/>=&nbsp;<wbr/>path&nbsp;<wbr/>+&nbsp;<wbr/>part&nbsp;<wbr/>+&nbsp;<wbr/>&quot;\&quot;&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/></p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>If&nbsp;<wbr/>fs.FolderExists(&nbsp;<wbr/>serverpath&nbsp;<wbr/>&amp;&nbsp;<wbr/>path&nbsp;<wbr/>)&nbsp;<wbr/>=&nbsp;<wbr/>False&nbsp;<wbr/>Then</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>fs.CreateFolder(serverpath&nbsp;<wbr/>&amp;&nbsp;<wbr/>path&nbsp;<wbr/>)</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>End&nbsp;<wbr/>If</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>Next</p><p>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>&nbsp;<wbr/>End&nbsp;<wbr/>Function<wbr/></p><p>?????????????????&nbsp;<wbr/></p> [.Net???]???????? .Net 2.0 ??? IIS ???? http://www.haxv.top//tech/5422.html ???????? .Net??? 2015/4/17 9:50:21 <p><span style="line-height: 1em;">???????????????? .Net ??????? IIS ???棬?????????????????????????</span></p><p>????????????????? IIS ??????.net ?????????? .net ??????????????.</p><p>??????-????-cmd:??????????????????IIS<br/><img src="/upload/2015-4/2015041709521887471.jpg" alt=""/><br/><span style="color:#ff0000;">C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i</span></p><p><span style="color:#ff0000;">????????????IIS???? </span></p><p><br/><strong>??????aspnet_regiis.exe??????????????</strong><br/><br/>-i - ??? ASP.NET ???汾???????? IIS ???????????<br/>???????????μ?????<br/>?????????е??汾??????<br/>????????汾??<br/>-ir - ??? ASP.NET ???汾?????????<br/>???? IIS ?е??????<br/>-enable - ?? -i ?? -ir ??? -enable ???????<br/>?? IIS ????????(IIS 6.0 ?????汾)?????? ASP.NET??<br/>-s &lt;path&gt; - ???????·?????鷽??????汾<br/>??????????е??汾??????<br/>????????汾??<br/>???? aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1<br/>-sn &lt;path&gt; - ???????·??????鷽??????汾??<br/>?????????е??汾??????<br/>????????汾??<br/>-r - ? IIS ???????λ????汾<br/>????????μ????н???????????????????汾??????<br/>???????е??????<br/>???????汾??<br/>-u - ж?? ASP.NET ???汾??????汾??<br/>???н????????????????????????<br/>???????? ASP.NET ?汾??<br/>-ua - ж????????????? ASP.NET ?汾<br/>-k &lt;path&gt; - ???????·???????鷽???????κ? ASP.NET ?汾??????<br/>??????<br/>???? aspnet_regiis.exe -k W3SVC/1/ROOT/SampleApp1<br/>-kn &lt;path&gt; - ???????·????????鷽???????κ? ASP.NET ?汾??????<br/>??????<br/>-lv - ?г????????????????<br/>ASP.NET ?汾(??????????·??)??<br/>Status: Valid[ (Root)]|Invalid<br/>-lk - ?г????? ASP.NET ??????????? IIS ?????????????·??<br/>(????汾???)????????????<br/>??? ASP.NET ????????<br/>-c - ????????????汾?????<br/>??? IIS ??????? aspnet_client ?????С?<br/>-e - ????? IIS ??????? aspnet_client ??????<br/>?????????????汾??<br/>-ea - ????? IIS ??????? aspnet_client ??????<br/>???????????????а汾??<br/>-? - ?????????????<br/></p> [.Net???]aspx????????,ASPX???????????? http://www.haxv.top//tech/3633.html downcc.com .Net??? 2015/3/9 16:23:35 <p>??<a href="http://www.haxv.top/soft/9014.html" target="_blank" textvalue="Visual Studio .NET 2003">Visual Studio .NET 2003</a>????????????????????????????????????????????????????????IIS????????????????????????IE????</p><p>1????IIS??????а???????&quot;??????????&quot;?????<br/>2?????&quot;??????&quot;????????<br/>3????????????????&quot;???--??????&quot;<br/>4?????????????????????巽?????£?<br/>1????????????棬??????????????????&quot;abcd&quot;?????????<br/>2????????????????????ASPX????????????<br/>3???????????????????????????????<br/>5??????????&quot;??????&quot;???&quot;+&quot;??<br/>6?????&quot;abcd&quot;??????????????????????????????????<br/>7?????????????????ASPX???????????????????</p><p>??????????????????????ASP??????????÷??????</p><p>?????????????????????????ü??±????????????????Dreamweawer????????<a href="http://www.haxv.top/soft/821.html" target="_blank">Dreamweawer8</a>??????????汾?????<br/>1??????IIS????????????????????????12345???????67????????<br/>2????Dreamweawer?????&quot;???--??????&quot;???????????????<br/>????&quot;abcd&quot;?????????<br/>3???????????????&quot;ASP VBscript&quot;<br/>4?????ASPX????洢???????????<br/>5??????http://localhost/????????/ (??β??&quot;/&quot;???????)<br/>?????????????qwer,??????<br/>http://localhost/qwer/<br/>???????ò???????URL??<br/>6??????????????????????????</p><p>???????????????????????????Dreamweawer??????????????????IIS</p><p>?????Visual Studio .NET 2003???????Ч????</p><p>????????????????????????????????IIS???????????????Visual Studio .NET 2003??Dreamweawer</p> [.Net???]asp.net??????????ó???????"??????? http://www.haxv.top//tech/3565.html downcc.com .Net??? 2015/2/28 11:00:41 <p>??????????????????????<span style="COLOR: #41b80f">.Net Framework</span>?????IIS????.Net?????IIS????? <br/><br/>??????????????????.net?????й?????????aspnet_regIIS /i???????(???????????????????C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i)???????????????ζ????У???????????????ж???????????′??????ó?????У????????£? <br/><br/>??.net?????й????????? aspnet_regIIS /u ж?????aspnet_regIIS /i??? <br/>???????IIS ????????????ó??????????????′??????ó??? <br/><br/>???????п?????ASPNET??????IIS?????????????????????????????????????????-????????-??-??ü?????й???????????????????????????????????????????????????-???-???-???-???????????ASPNET???????????????????????????????????????????????????????????????????????????????л????ASPNET??????????????????????????????????????????????????м?????????????????? <br/><br/><strong>???????? ???????.Net 2.0: <br/></strong>C:WINDOWSMicrosoft.NetFrameworkv2.0.50727as.Net_regiis.exe ?Ci <br/><br/><strong>????????? ?????ó????:</strong> <br/>?????ó???????? <br/>1. ???????????????????????????????????塱?? <br/>2. ???????????????????????Inte.Net ??????? (IIS)???? <br/>3. ???????????ó??????????????????????????ó??????? <br/>4. ?????ó???? ID????????м??? AppPool1?? <br/>5. ????????????? <br/><br/><strong>????ó????????ó????</strong> <br/>1. ???????????????????????????????????塱?? <br/>2. ???????????????????????Inte.Net ??????? (IIS)???? <br/>3. ?????Web ????? <br/>4. ???????? Web ????? <br/>5. ?????????DebugApp1?????????????????? <br/>6. ?????????????е????ó??????б???????AppPool1?????????????????? <br/><br/><strong>?????????,????????????????е???????:</strong> <br/><br/>?????????????&gt;?????&gt;?????&gt;?????&gt;????&gt;?????&gt;?????????&gt;??? Users ??? ??&gt;?????&gt;??? <br/><br/><strong>???????</strong> <br/>1??????????ó??????????????????????ó??????????????????????OK?? <br/>2??WEB??????????е???????NetWork Service??????? <br/>????????????????????.NET??????</p> [PHP???]windows??????phpMyAdmin????? http://www.haxv.top//tech/4114.html downcc.com PHP??? 2015/2/19 15:54:57 <p><strong>???????</strong></p><p>???????????????&nbsp;phpMyAdmin????????&nbsp;phpMyAdmin&nbsp;?????????????????<a href="http://www.haxv.top/soft/10956.html" target="_blank" textvalue="http://www.haxv.top/soft/10956.html">http://www.haxv.top/soft/10956.html</a>&nbsp;??????&nbsp;web&nbsp;???????????£???????????????????????&nbsp;ftp&nbsp;?????????&nbsp;web&nbsp;???£???????????????????????????</p><p><strong>????????</strong></p><p>??&nbsp;libraries&nbsp;???μ?&nbsp;config.default.php&nbsp;?????????????????????????????ü??ɡ?</p><p>1??&nbsp;&nbsp;???????</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840116.png"/></p><p>2??&nbsp;&nbsp;&nbsp;&nbsp;MySQL&nbsp;???????</p><p>??д&nbsp;localhost&nbsp;??&nbsp;MySQL&nbsp;???????????&nbsp;ip&nbsp;????????&nbsp;MySQL&nbsp;???&nbsp;phpMyAdmin&nbsp;?????????????????&nbsp;localhost</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840210.png"/></p><p>MySQL&nbsp;????????&nbsp;3306?????????????????????&nbsp;MySQL&nbsp;??????????????????????????д??</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840124.png"/></p><p>3??&nbsp;&nbsp;MySQL&nbsp;???????????</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840760.png"/></p><p>4??&nbsp;&nbsp;&nbsp;???????</p><p>?????????????????cookie??http??HTTP??config;<br/>config&nbsp;?????????&nbsp;phpMyAdmin&nbsp;?????????????????????????????????????????????????????á?<br/>???????????&nbsp;cookie??http&nbsp;??&nbsp;HTTP&nbsp;??????&nbsp;phpMyAdmin&nbsp;?????????????????????????????????£?<br/>PHP&nbsp;??????&nbsp;Apache?????????&nbsp;http&nbsp;??&nbsp;cookie??<br/>PHP&nbsp;??????&nbsp;CGI?????????&nbsp;cookie??</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840649.png"/></p><p>5??&nbsp;????????blowfish_secret????????</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840601.png"/></p><p>6??&nbsp;??????????</p><p>?????????zh[????????]</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293840954.png"/></p><p>7??&nbsp;&nbsp;????PhpMyAdmin</p><p style="TEXT-INDENT: 0px"><img style="CURSOR: pointer" title="????????" alt="" src="/upload/tech/UploadPic/2012-8/20128293841307.png"/></p> [PHP???]PHP??session??÷?????? http://www.haxv.top//tech/3557.html downcc.com PHP??? 2015/2/18 15:38:02 <p>PHP??session??? <br/>???????? <br/>????Session???????????????????????????????????????????????????????????????????????????????????????????????????????????Session???????????????????? <br/>???????????????????????????е????(?????????????????)?????????????????????session??e????session????????????????????????á??????????????session?????????????,?????????,?????????????? <br/>??????PHP3?汾??????????session??? <br/>????php3????????????session?????????????????????????????,?????????????????phplib???phplib?????????????????????Session????????????????????????????????????????phplib???session?? <br/>????1????????phplib???????win2000+<a href="http://www.haxv.top/soft/5705.html" target="_blank" textvalue="php">php</a>3.0.16+<a href="http://www.haxv.top/soft/225.html" target="_blank" textvalue="Apache">Apache</a>1.3.12+phplib7.2c+<a href="http://www.haxv.top/soft/5690.html" target="_blank" textvalue="mysql">mysql</a>3.23.21 for win32?? <br/>?????????phplib??,?????????&quot;php&quot;?????????????????Apache????????????磺Apache?????d:\Apache ???£???????&quot;php&quot;????????d:\Apache??????phplib????pages???£??????????????????????????????d:\Apache\htdocs??? <br/>????phplib?????????????????г????????????????local.inc???,???а??????Щ?????????????????????????????????????????? <br/>??????d:\Apache\php\prepend.php????е???γ?????????????? <br/>????????if (!isset($_PHPLIB) or !is_array($_PHPLIB)) { <br/>????????????$_PHPLIB[&quot;libdir&quot;] = &quot;d:/Apache/php/&quot;; //??phplib??php????·?? <br/>????????} <br/>???????d:\Apache\php\local.inc???: <br/>????????class DB_Example extends DB_Sql { <br/>????????????var $Host = &quot;localhost&quot;; //mysql??????????????? <br/>????????????var $Database = &quot;test&quot;; //??????? <br/>????????????var $User = &quot;root&quot;; //?????????? <br/>????????????var $Password = &quot;1234567&quot;; //???????????? <br/>????????} <br/>??????????phplib???μ?stuff?????е?create_database.mysql???????????? <br/>???????????????phplib??????????????????????phplib????????????????????????php.ini??????auto_prepend?????????,phplib?а??????prepend.php?????????auto_prepend????&quot;d:/Apache/php/prepend.php&quot;(??????)??,??????????????phplib?????????????phplib????????????include??????,???????????Щ????? <br/>2??????page_open???????? <br/>?????????????phplib??????У????????????page_open???????г?????????磺 <br/>???????php <br/>????page_open(array(&quot;sess&quot; =?? &quot;Test_Session&quot;)); <br/>??????? <br/>???????????(sess)??????????Щ?????????,?????????????????phplib??????(sess),??Щ??????????local.inc?????????.?? <br/>???????phplib?????Cookies???????????,????page_open()??????????????????????????????????á?php?????????page_close()????,?????й???????д??????????,???????????? <br/>????3????????á? <br/>???????????????????????????????????????session???????????? <br/>???????????php $sess-??register( &quot;varname&quot;); ??? <br/>???????,?????varname??????????????????????????????????????????????????????????п???????????,???????????????????????????????????????????????????????????????????????????顣??????????? <br/>????????: <br/>???????????php <br/>????????page_open(array(&quot;sess&quot; =?? &quot;Test _Session&quot;)); <br/>????????$sess-??register( &quot;welcome&quot;); //??????$welcome,????????$ <br/>????????$welcome=&quot;Hello,PHP world!&quot;; <br/>???????????? <br/>????????page_close(); <br/>??????????? <br/>????????: <br/>???????????php <br/>????????page_open();//???session <br/>????????echo $welcome;//????????ж????$welcome <br/>????????page_close();//????????? <br/>??????????? <br/>?????????????????????????????page_close()??????????session??????д?????????С???????????page_close()??????????????????д???????,???????????????????????????????????????????????,??????????o?????????????? <br/>???????????php <br/>????????page_open(array(&quot;sess&quot; =?? &quot;Test _Session&quot;)); <br/>???????????? <br/>????????$sess-??unregister( &quot;variable_name&quot;); <br/>???????????? <br/>????????page_close(); <br/>??????????? <br/>??????PHP4?汾??????????session??? <br/>????php4??session???cookies????session id,??????????????(????????),???,????session???????????????????????session????????????С? <br/>??????php4???й?session????????(???php.ini???????)???????????????????????????????????sesssion_start()??session_register()??session_is_registered()?? <br/>????????????session????????????????session_start()????, ???磺 <br/>???????????session_start()??? <br/>??????????html????body?? <br/>??????????? <br/>????????$welcome=&quot;hello world !&quot;; <br/>????????session_register(&quot;welcome&quot;);//???$welcome????,??????$???? <br/>????????if(session_is_registered(&quot;welcome&quot;))//???$welcome?????????? <br/>????????????echo &quot;welcome????????????!&quot;; <br/>????????else <br/>????????????echo &quot;welcome????????????!&quot;; <br/>??????????? <br/>??????????/body????/html?? <br/>????php4??session???????? <br/>???????????????6???????? <br/>????????sess_open($sess_path, $session_name); <br/>?????????????????session????????????????????????? <br/>????????????$sess_path???php.ini????е?session.save_path??? <br/>????????????$session_name???php.ini?е?session.name ?? <br/>????????sess_close(); <br/>?????????????????????????в???session???????????????????? <br/>????????sess_read($key); <br/>?????????????????session????????????session???($key)?,?????????????$key??session????.(??????л??????????????????????????????????????,???′γ??????л?????????????????,?б??????????????????) <br/>????????sess_write($key, $val); <br/>???????????????????session????????????????????????,??????????????????????????????????????????′?????sess_read($key)?????????????? <br/>????????sess_destroy($key); <br/>????????????????????????session????????????session????????????? <br/>????????sess_gc($maxlifetime); <br/>???????????????????????????????????????,??????????????session?????session???????????????????? <br/>????????????????mysql??????DBM???????session????,?????????????????????mysql?????,?????????????μ???裺 <br/>??????????mysql?д??????sessions?????,??????????sessions??? <br/>????mysql?? CREATE DATABASE sessions; <br/>????mysql?? GRANT select, insert, update, delete ON sessions.* TO phpsession@localhost <br/>????????-?? IDENTIFIED BY &#39;phpsession&#39;; <br/>????mysql?? CREATE TABLE sessions ( <br/>????????-?? sesskey char(32) not null, <br/>????????-?? expiry int(11) unsigned not null, <br/>????????-?? value text not null, <br/>????????-?? PRIMARY KEY (sesskey) <br/>????????-?? ); <br/>?????????,???session_mysql.php?????$SESS_DB* ???????????????????????????: <br/>??? <br/>$SESS_DBHOST = &quot;localhost&quot;; /* ??????????? */ <br/>$SESS_DBNAME = &quot;sessions&quot;; /* ??????? */ <br/>$SESS_DBUSER = &quot;phpsession&quot;; /* ?????????? */ <br/>$SESS_DBPASS = &quot;phpsession&quot;; /* ????????? */ <br/>$SESS_DBH = &quot;&quot;; <br/>$SESS_LIFE = get_cfg_var(&quot;session.gc_maxlifetime&quot;); <br/>????//??????? <br/>session_set_save_handler( &quot;sess_open&quot;, &quot;sess_close&quot;, &quot;sess_read&quot;, &quot;sess_write&quot;, &quot;sess_destroy&quot;, &quot;sess_gc&quot;); <br/>??? <br/>???????????dbm???????</p> [PHP???]PHP????header????Ч???????? http://www.haxv.top//tech/5383.html www.haxv.top PHP??? 2014/10/25 18:02:13 <p>?????????????PHP????header????Ч??????????????????????ο??????巽?????????£?</p> <p><strong>???????</strong></p> <p>????header(\&quot;Location: $url\&quot;),???????????????,?????????,?????????,????????????飬$url??????????????,????????????echo $url??????????,??????????header????????Ч.</p> <p><strong>?????????????</strong></p> <p>??PHP????header(&quot;location:test.php&quot;)??????????????????:</p> <p>1??location??&ldquo;:&rdquo;??????п??,????????.//downcc.com</p> <p>2??????header????????κε????,????include??????б??&ldquo;?&gt;&rdquo;?????п??.</p> <p>3??header???PHP?????????.</p> <p>PHP?? header ????????????κ????????,???PHP?????е??????????????????HTTP????,????????????????.</p> <p>?????????????????????????header????????????? ob_start() ob_end_flush() ???????????????????,???header?????????????.</p> <p>??????????????,???php.ini,??? output_buffering=Off ???? output_buffering=4096.</p> <p>????????????????PHP?????????????????</p> [Asp???]ASP??PHP?????????? http://www.haxv.top//tech/5265.html www.haxv.top Asp??? 2014/4/7 13:58:52 <p><span style="color: rgb(255,0,0)">PHP??????????????????????Hypertext Preprocessor????д.PHP ????? HTML ???????????????????????????е????HTML???????????????????????????c??????????????á?<br /> </span></p> <p><span style="color: rgb(255,0,0)">ASP??Active Server Page????д?????&ldquo;????????????&rdquo;??ASP????????????????CGI???????????????????????<a target="_blank" href="http://www.haxv.top/zhuanti/sql.html">?????</a>????????????н????????????????????????ASP??????????????.asp????????????????????С???????????????????????????????????顢????????????????????д????ASP?? PHP??????д?????????????ASP????д?????????????</span></p> <p>???????PHP???????????????????????????????????????????????????????????Linux????????????????????????????????????????????????ASP????PHP???????????????????ASP?????? ??????????????????Ч?????????????ASP??????????????????</p> <p><strong>ASP</strong>??</p> <p>1.???VBScript ?? JScript??????????????????HTML??????????????????????ó??? <br /> 2. ????compile?????????д??????????????????С? <br /> 3. ???????????????????Windows????±?????????б????? <br /> 4. ??????????(Browser Independence), ??????????????HTML?????????????????Active Server Pages??????????????Active ServerPages ????????????(VBScript ?? Jscript)????web??????????У?????????????????????????Щ???????? <br /> 5.Active Server Pages?????κ?ActiveX scripting????????????????VB Script??JScript????????????????plug??in?????????????????????????????????????REXX ??Perl ??Tcl??????????????????????COM(Component Object Model) ???? <br /> 6. ????÷?????????????????????????? <br /> 7. ActiveX Server Components(ActiveX ????????? )???????????????????????Visual Basic ??Java ??Visual C???? ??COBOL????????????????д?????????ActiveX Server Component ??</p> <p><strong>PHP:</strong><br /> 1.????????? <br /> PHP?????????????????????????????????PHP??MySQL??????????????????????????д??Χ?????????????????????????????????????????????????????????????????????????仯??PHPLIB?????????????????????????????л?????PHP??????????????????????????Oracle, MySQL??Sybase?????????????????????PHP????????? <br /> ?????????????????????ASP??????????????????WINDOWS??????д???????????????ASP ?????? VBScript ??д, JavaScript???Щ??????PHP ?????????? ASP ?????????????????LINUX?????</p> [.Net???]win8 RP8000??.Net Framework3.5??????? http://www.haxv.top//tech/5076.html www.haxv.top .Net??? 2013/10/15 10:09:48 <p><strong>win8 RP8000??.net framework3.5???????</strong></p> <p>??Win8 ISO??????source?????sxs????????C?????????Win8??????C:\SxS ???????????????????·????Ч??????</p> <p>????ù??????????cmd ???<br /> <br /> Dism.exe /online /enable-feature /featurename:NetFX3 /Source:c:\sxs /LimitAccess<br /> <br /> ???10???? ???????</p> [.Net???].NET Framework ????????Щ?????????.NET??? http://www.haxv.top//tech/5075.html www.haxv.top .Net??? 2013/10/14 22:16:21 <p>&nbsp;-.net framework????????°????windows??????????ó??????(API Library)??<br /> - .NET Framework?????????java????????????(Common Language Runtime)??????java ????????????????????????????????java????е?&ldquo;??????????????&rdquo;????Deterministic Garbage Collection??????????????????)??<br /> - ?????????????м?????(Common Intermediate Language?????????????????????CIL????ò??????????????VB,C#,J#?????????????????????У???????????????????<br /> - .NET Framework??????????????ó??????????????????????????<br /> <br /> <strong>.NET Framework????????<br /> </strong>- ?????????μ?windows??????<br /> - ?????????Windows?????????????????????OS?????????<br /> - ????????windows?????<br /> <br /> ?????.NET framework?????????????????????????£??????????????Ч???????????????????????????????м????????????.net framework????????????????windows API??????????????????????????????Υ??????????????????????????????????????????????????????????????????.net framework?????????????????????????????????&ldquo;?&rdquo;???????????t????????????????????????????????????????????????????&ldquo;?&rdquo;?????????????????????????????????θ???<br /> <br /> .net framework?????????????pc?????е??????????????????????????????????????????Microsoft?????????豸?????е?.net CF(compact framework)??<br /> 1??Java ?????????????豸?????е? J2ME(Java Micro Edition)????J2SE??Java Standard Edition????????????????????????????????<br /> 2??????豸?????????????????????????????????豸????????豸?????Щ??????????????μ?????????????.NET framework?????????????.net CF???????????????????????????????????????????.net remoting??????????????.net??????<br /> <br /> ??PC???.net framework?????????:??1.1????2.0??3.0???????μ?3.5????????????????????????????????????????????????????.net 2.0????????????????.net 1.1???????????????????????1.1???С???????PPC???.net compact framework??????????????????????3.5????????????е?.net CF ?????????????3.5???????????л????κ?????汾????????????<br /> <br /> .net CF 2.0???Ч????????????????????2.0????????о?????????3.5???????????????????3.5??????????????3.5?????????????У???????????3.5???????2.0????????????3.5???????2.0????????????3.5????????????????????????л???.net CF??????????<br /> <br /> ???????????ppc????????????.net CF?????????????豸?????????????????????????????????????ó?????????????.net framework????????????????????????.net???????????ú???????????????????<br /> <br /> ??ЩPPC??????????.NET Compact Framework ?????????<br /> <br /> ?????????? ActiveSync 4.0 ??????汾???????豸???????????μ? Windows Mobile Center????????????? NETCFSetupv35.msi ????????????豸?????δ?????豸??ActiveSync ??洢 CAB ?????????????????豸?????и????????? ActiveSync ???????????????豸???????????????е???????豸?????? CAB ?????</p> [.Net???]??? .Net Framework4 ?????????????????ι?????? http://www.haxv.top//tech/5074.html www.haxv.top .Net??? 2013/10/14 22:15:05 <p>??? .Net Framework4?????????????У????????&ldquo;???δ???&rdquo;??&ldquo;??δ???.NET Framework 4 ??????????????ι??????&rdquo;??????????????Щ???????????????????????????? <br /> <br /> ?????????????????dll?????????????????????Softpub.dll, Wintrust.dll, Initpki.dll, and Mssip32.dll?????dll?????<br /> <br /> ??????????? .net framwork 4?????????δ??????????????????δ????????????????</p> <p style="text-indent: 0px"><img title="????????" alt="" style="cursor: pointer" src="/upload/tech/UploadPic/2013-10/20131014221555959.jpg" /></p> <p>????????????е?DLL???????????????2?????????</p> <p>??Win??Windows???????+R?????????ж????????<strong>cmd</strong>?????????</p> <p>?????????????У??????????????????????????<strong>regsvr32 /s Softpub.dll</strong>??????<strong>regsvr32 /s Wintrust.dll</strong>??????<strong>regsvr32 /s Initpki.dll</strong>??????<strong>regsvr32 /s Mssip32.dll</strong>??</p> <p>?????°???? <br /> <br /> <span style="color: #ff0000">??????????????????????<br /> </span>regsvr32 /s Softpub.dll<br /> regsvr32 /s Wintrust.dll<br /> regsvr32 /s Initpki.dll<br /> regsvr32 /s Mssip32.dll</p> <p>???е????<span style="color: #ff0000">????????????????????????Admin???</span> ?????б????????</p> [.Net???].NET Framework?????????????? http://www.haxv.top//tech/5073.html www.haxv.top .Net??? 2013/10/14 22:12:19 <p>?????Microsoft .NET Framework 4.0????????????????????????????&ldquo;Microsoft .NET Framework 4.0??????????????? &rdquo;</p> <p>?????????????????????????????????????3????????????????? .NET Framework 4.0????????????????????????????????????е????????????????????????????????????????????????????????ο?????<br /> <br /> <strong>???????<br /> </strong><br /> ????????????XP???????????<br /> <br /> 1.???&mdash;&mdash;????&mdash;&mdash;????cmd&mdash;&mdash;???&mdash;&mdash;??????????????net stop WuAuServ<br /> <br /> 2.???&mdash;&mdash;????&mdash;&mdash;????%windir%<br /> <br /> 3.???????????и?????н?SoftwareDistribution?????????????SDold<br /> <br /> 4.???&mdash;&mdash;????&mdash;&mdash;????cmd&mdash;&mdash;???&mdash;&mdash;??????????????net start WuAuServ<br /> <br /> <strong>???????<br /> </strong><br /> 1.???&mdash;&mdash;????&mdash;&mdash;????regedit&mdash;&mdash;???<br /> <br /> 2.???????,HKEY_LOCAL_MACHINE\SOFWARE\Microsoft\Internet Explorer?μ?<br /> <br /> MAIN????????main???????????????&ldquo;??&rdquo;&ndash;&ldquo;???&rdquo;??????????<br /> <br /> ??&ldquo;???????????&rdquo;??????????????ɡ????????????????????????ghost?????????к?????а?ie????????<br /> <br /> <strong>??????????? Net.Framework4.0<br /> </strong><br /> <strong>????????<br /> </strong><br /> ??????.NET Framework 4.0?????????????????????????.NET Framework 4.0?????????????????????????????.NET Framework ????????????÷?????????????????????????????????????????????????<br /> <br /> http://support.microsoft.com/kb/2497934/zh-cn<br /> <br /> <strong>????????<br /> </strong><br /> ??????????Microsoft .NET Framework 4 ??????????<a target="_blank" href="http://www.haxv.top/soft/8931.html">http://www.haxv.top/soft/8931.html</a></p> [PHP???]PHP?????????????? http://www.haxv.top//tech/5032.html www.haxv.top PHP??? 2013/8/30 13:49:12 <p>???3????PHP?г?????????????????????????</p> <p><strong>????1: PHP?? header() ????</strong></p> <p>&lt;?php<br /> header(&quot;Location:http://www.haxv.top&quot;);<br /> ?&gt;</p> <p>???<br /> 1. location ?? : ??????п?????????????<br /> 2. header()????????κε??????<br /> 3. header()????PHP????????С?</p> <p><strong>????2: Meta???</strong></p> <p>Meta?????HTML?и????????????????????PHP?????????????????????????????? ?????http-equiv?refresh,???????????????content?漲???????????????????????檔??????content=&rdquo;????;url=???&rdquo;???????????????????????????????????</p> <p>&lt;html&gt;<br /> &lt;head&gt;<br /> &lt;meta http-equiv=&quot;refresh&quot;content=&quot;1;url=http://www.haxv.top&quot;&gt;<br /> &lt;title&gt;HTML????&lt;/title&gt;<br /> &lt;/head&gt;<br /> &lt;content&gt;???PHP??&lt;/content&gt;<br /> &lt;/html&gt;</p> <p><strong>????3: javascript???</strong></p> <p>&lt;script language=&quot;javascript&quot;type=&quot;text/javascript&quot;&gt;<br /> location.href =http://www.haxv.top;<br /> &lt;/script&gt;</p> [Asp???]???asp???????????????? http://www.haxv.top//tech/4966.html www.haxv.top Asp??? 2013/8/12 10:30:13 <p>????????IIS?????ASP???????</p> <p>?????????????????????????????<a target="_blank" href="http://www.haxv.top/soft/9687.html">IIS</a>??????????????ASP?????????????????????????IE????IE??????????????????????</p> <p>???????????2000Server?????????IIS??????ASP?????????????????????????IE?????ü??±??????????</p> <p>???????IIS?????IIS???潨??????,?????????????????(??????ASP,ASPX???????),?????????????,?????????????????????????????б?,???????????????????,???????????????,??????????±?,?????????????????ü??±???????б???.ASP??????????HTML???,??????????????????.?????????IIS???????????,???????????????????,???????????????<a target="_blank" href="http://www.haxv.top/soft/12133.html">DW</a>?????????????????,?ü??±????,????????????.</p> <p>????????????????????????????asp????IIS?????·????????????????ASP??????????.????????????????????????????????,???????</p> <p>?????°?IIS?????£?????aspnet_regiiis -i?????????????????????IIS??<a target="_blank" href="http://www.haxv.top/soft/848.html">.net</a>?????????????????[???????:???????????cmd,??????c??,?????cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322,??????aspnet_regiis -i</p> <p>?????,??????????.</p> [Asp???]Microsoft JET Database Engine ???? &#39;80004005&#39; ???????? http://www.haxv.top//tech/4916.html www.haxv.top Asp??? 2013/7/17 14:57:10 <p>?????????????????μ????????????ACC??????????</p> <p>&nbsp;<span style="font-size: 14pt"><strong>??????</strong></span><br /> Windows 2003+IIS6+NTFS<br /> ASP+Access<br /> <br /> <span style="font-size: 14pt"><strong>???????</strong></span><br /> Microsoft JETDatabase Engine ???? '80004005' δ????????<br /> <br /> <span style="font-size: 14pt"><strong>???????</strong></span><br /> ?????????????????????NTFS????У???IIS????????<strong>IUSR_???????</strong>????????????????в???????????????<br /> ???????????????ж?IIS??????????д?????????????????????????????и????д??<br /> ???? ??????????????IIS??????????д?????????????????????????????κβ???Microsoft JET Database Engine ????Access???????????????????????????????????????????????????Щ?????????????????????????Щ????????????????????? ??????????????????????<br /> <br /> <span style="font-size: 14pt"><strong>?????</strong></span><br /> ????????Microsoft Access???????????????????ж?IIS?????????д???????????У?????<strong>д??</strong>??????????????????<em>??Microsoft </em>JET<em> Database Engine ???? '80004005' ??????????????????μ?????</em>?????<br /> <br /> ????<span style="background-color: #ffffff">JET </span>??????????????????????<strong>%windir%/temp/</strong>???′?????????????IIS????????<strong>%windir%/temp/</strong>?????????????????IIS????????<strong>IUSR_???????</strong>????<strong>%windir%/temp/</strong>???д?????ɡ?<br /> <br /> ?????Щδ??????????????????????ASP????????????????? <br /> ?????????????????<br /> 1.regsvr32 jscript.dll<br /> 2.regsvr32 vbscript.dll <br /> 3.iisreset</p> [Asp???]???NetBox????asp ???????iis???? http://www.haxv.top//tech/4914.html www.haxv.top Asp??? 2013/7/14 20:47:13 <p>??? NetBox ????????? asp ???????????????е???г?????????? iis ????????????????е? Windows ?汾??????????У??????????????????????? asp ???л????????????????????????е? asp ??????衣</p> <p>??????? asp ???л???</p> <p>??????????????????????????λ????????? d:\websvr???????д???????????main.box?????????????</p> <pre> Dim httpd Shell.Service.RunService &quot;NBWeb&quot;, &quot;NetBox Web Server&quot;, &quot;NetBox Http Server Sample&quot; '---------------------- Service Event --------------------- Sub OnServiceStart() Set httpd = CreateObject(&quot;NetBox.HttpServer&quot;) If httpd.Create(&quot;&quot;, 80) = 0 Then Set host = httpd.AddHost(&quot;&quot;, &quot;\wwwroot&quot;) host.EnableScript = true <strong>host.AddDefault &quot;default.asp&quot; host.AddDefault &quot;default.htm&quot;</strong> httpd.Start else Shell.Quit 0 end if End Sub Sub OnServiceStop() httpd.Close End Sub Sub OnServicePause() httpd.Stop End Sub Sub OnServiceResume() httpd.Start End Sub</pre> <p>??????????????????? WEB ?????????????м?????????????????????????ò???????????????????</p> <p>???????? asp ???</p> <p>????????????????????wwwroot???????? iis ?е???????????? wwwroot ?С????????? asp ???л?????????????????</p> <p>????????????</p> <p>???????????????? netbox ??????????????? iis ??????????? 80 ?????????????????????????? iis ???????????????????????? iis??????? iis ???????????????????</p> <p>????? iis ??????????????????? netbox ????????? main.box ??????????????????????? netbox ??????????netbox ???????????????????????????? ie ???? http://localhost ??????? asp ?????????????????С????????′?? asp ??????????????????</p> <p>???????</p> <p>????????????????? nbdw.exe??</p> <p>?? Select Folder??????????????????? d:\websvr???? Browser???趨?????????????????? Build...?????????</p> <p>????&hellip;&hellip;</p> <p>???????????????????????????????????????????????</p> <p>???????????????????????? Web ?????????????????????</p> <pre> myapp -install</pre> <p>????e???????????????????????????????????????????????ж??????????????????????</p> <p>myapp -remove</p> [.Net???]System.Data.SqlClient.SqlException: ???????????????????? ??????? http://www.haxv.top//tech/4744.html www.haxv.top .Net??? 2013/4/4 23:05:34 <p>????????????...????VS2008??????д????,?????????????...???????????,?????????,???漰???????????...</p> <p>???????????????????? &quot;TakeClass&quot;?????????<br /> ??? '2D2727E2578F446ASPNET' ??????? <br /> ???: ??е?? Web ???????????δ??????????????????????????????й?????????????е??′????????????????? <br /> <br /> ????????: System.Data.SqlClient.SqlException: ???????????????????? &quot;TakeClass&quot;????????? <br /> ??? '2D2727E2578F446ASPNET' ??????? <br /> <br /> ??????????????????????????淽????????? <br /> <br /> 1.????????????????,???????????---?????---?????????????''XXXASPNET'' --???&quot;????&quot;; <br /> 2.???&quot;??????&quot;???---?????潫?????????????????? <br /> 3.???????---???????????????????????,???????&quot;?????????????&quot;??????&quot;db_owner&quot;???</p> [.Net???]??/????ó????е????????????????? http://www.haxv.top//tech/4742.html www.haxv.top .Net??? 2013/4/4 22:57:15 <p>???????:???????????????ntfs???,????service???????????????????? <br /> <br /> ???????????: <br /> ????????? <br /> <br /> ???: ?????????????ó??????????ó?????????????????y????????ó?????????????(?????????)???????????????????????????????е?????????? <br /> <br /> ??????: ?????????????????????????????????????????????????λ???? Web ??ó???????μ?&ldquo;web.config&rdquo;????????д?????? &lt;customErrors&gt; ???????????? &lt;customErrors&gt; ????&ldquo;mode&rdquo;?????????&ldquo;Off&rdquo;?? <br /> <br /> &lt;!-- Web.Config ??????? --&gt; <br /> <br /> &lt;configuration&gt; <br /> &lt;system.web&gt; <br /> &lt;customErrors mode=&quot;Off&quot;/&gt; <br /> &lt;/system.web&gt; <br /> &lt;/configuration&gt; <br /> <br /> ???: ????????ó???? &lt;customErrors&gt; ???????&ldquo;defaultRedirect&rdquo;????????????????????? URL??????????????????滻????????????????? <br /> <br /> &lt;!-- Web.Config ??????? --&gt; <br /> <br /> <br /> &lt;configuration&gt; <br /> &lt;system.web&gt; <br /> &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt; <br /> &lt;/system.web&gt; <br /> &lt;/configuration&gt; <br /> <br /> <br /> &ldquo;/&rdquo;??ó????е?????????? <br /> ??????? <br /> ???: ????????????????????????????????????????????????????????????????????????????? <br /> <br /> ?????????????: ??????????y?&ldquo;connectionStrings&rdquo; <br /> <br /> ?????: <br /> <br /> ?? 12?? &lt;add key=&quot;Dsn&quot; value=&quot;server=(local);database=al_bysj;uid=sa;pwd=&quot;/&gt; <br /> ?? 13?? &lt;/appSettings&gt; <br /> ?? 14?? &lt;connectionStrings&gt; <br /> ?? 15?? &lt;add name=&quot;al_bysjConnectionString&quot; connectionString=&quot;Data Source=(local);Initial Catalog=al_bysj;User ID=sa;Password=&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt; <br /> ?? 16?? &lt;/connectionStrings&gt; <br /> <br /> <br /> ????: D:\PrecompiledWeb\MaterialManage\web.config ??: 14 <br /> <br /> ?汾???: Microsoft .NET Framework ?汾:1.1.4322.2300; ASP.NET ?汾:1.1.4322.2300 <br /> ??汾????п????????? <br /> <br /> ??????Microsoft .NET Framework ?汾???????????Microsoft .NET Framework 2.0?? <br /> <br /> <br /> <br /> ?????????? <br /> <br /> ??cmd ???????????? C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis.exe -i <br /> <br /> ??????????? <br /> <br /> ??IIS????и?????????????&lsquo;????&rsquo;????? Asp.net ????????? Asp.net ?汾???2.0 ???ɡ? <br /> Microsoft .NET Framework ?汾:1.1.4322.2300</p> [.Net???]???asp.net?С????????м???????Σ???Request.Form???????? http://www.haxv.top//tech/4677.html www.haxv.top .Net??? 2013/3/2 16:17:41 <p>??????????asp.net ?????&quot;??????(......)?м???????Σ??? Request.Form ?&quot; ??asp.net?е????????????????????????????????XSS??????asp.net????????????????????????????????汾.net??????????<br /> <br /> <strong>asp.net 2.0 ????????<br /> <br /> ???????<br /> <br /> </strong>??.aspx????е?page?????ValidateRequest=&quot;false&quot; ?????£?<br /> <br /> &lt;%@ Page ValidateRequest=&quot;false&quot; Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;test2.aspx.cs&quot; Inherits=&quot;test2&quot; %&gt; <br /> <br /> <strong>????????<br /> <br /> </strong>???web.config???????<br /> <br /> ??&lt;system.web&gt; <br /> ????&lt;pages validateRequest=&quot;false&quot; &gt; <br /> ????&lt;/pages&gt; <br /> ??&lt;/system.web&gt; <br /> <br /> <strong><span style="color: #000099; font-size: 16px">???</span></strong>validateRequest ?????????????????????????????????????? &lt;strong&gt;????&lt;/strong&gt; ??????????ASP.NET ????????????????÷??????????????????test.aspx???????棻???????÷??????????????????????????????ValidateRequest=&quot;false&quot; ??<br /> <br /> <strong>asp.net 4.0 ?????<br /> <br /> </strong>4.0??2.0?????????????????????? .Net Framework 4.0 ?????asp.net????????Request???????????????????????? Web.config ????? 2.0 ?汾??????<br /> <br /> <strong><span style="color: #ff0000">???????£?<br /> <br /> </span></strong>???Web.config??????requestValidationMode=&quot;2.0&quot;?????<br /> <br /> ??&lt;system.web&gt;<br /> ????&lt;httpRuntime requestValidationMode=&quot;2.0&quot; /&gt;<br /> ????&lt;pages validateRequest=&quot;false&quot;&gt;&lt;/pages&gt;<br /> ??&lt;/system.web&gt;<br /> <br /> 4.0 ?ж?????? requestValidationMode??????????????<br /> <br /> requestValidationMode ?????????<br /> <br /> &bull;2.0???????????????????????????????????? validateRequest??<br /> <br /> &bull;4.0 ???????κ? HTTP ?????????????????????????????????????????? Cookie ?????????????????? validateRequest ??????<br /> <br /> ???? requestValidationMode=&quot;4.0&quot; ??????????????????????? .NET Framework 4.0 ?н??????? validateRequest ????????????????????y? requestValidationMode ????? 2.0??</p> [.Net???].net 2.0 ?? 4.0?????.net?汾?????????? http://www.haxv.top//tech/4359.html www.haxv.top .Net??? 2012/11/28 13:15:36 <div > <p>???????????????????д??C#????????????.net 2.0?±?????????????.net 4.0?±???????????????lambda???????????????????????????? System.Core.dll ?????Action?????????? .net 2.0 ???????????????д???????? Patch.cs???????? System.Runtime.CompilerServices.ExtensionAttribute&nbsp; ????????????????2.0?????lambda?????????????????????????????????System.Core.dll ?????Action?????</p> <p>1: namespace System.Runtime.CompilerServices <br /> 2: { <br /> 3: public class ExtensionAttribute : Attribute { } <br /> 4: } 5: 6: namespace System <br /> 7: {<br /> 8: public delegate void Action();<br /> 9: public delegate void Action&lt;T0,T1&gt;(T0 t0,T1 t1);<br /> 10: }<br /> 11:</p> <p>????????.net 4.0 ?±??????????????????????????Patch.cs?????鷳??????????????????????????????</p> <p>1: #if NET2 <br /> 2: <br /> 3: namespace System.Runtime.CompilerServices <br /> 4: { <br /> 5: public class ExtensionAttribute : Attribute { } <br /> 6: } <br /> 7: <br /> 8: namespace System <br /> 9: {<br /> 10: public delegate void Action();<br /> 11: public delegate void Action&lt;T0,T1&gt;(T0 t0,T1 t1);<br /> 12: }<br /> 13: <br /> 14: #endif</p> <p>???????.net ????ж????.net?汾?й????????????????????????????????????Build Events???????????????????????.net?汾??????????????????????</p> <p>??&nbsp; C#?????(2): ??дC#?????????????????????????? ????У?д????????? Csmacro.exe ?????C#?μ??????????????Csmacro.exe ?????????????????????????.net ?汾??????</p> <p>??????????????μ? csproj ???????????????????TargetFrameworkVersion???ж?.net?汾????????????Csmacro_Template.cs??????????? #define ?汾?????????磬?? .Net 2.0 ?????????? Csmacro_Template.cs ??????????</p> <p>#define NET2</p> <p>????Csmacro?????????https://github.com/xiaotie/GebCommon&nbsp;???????????????? .net 2.0 ?? 4.0???????????????汾???????????????????? Csmacro????о?e????</p> <p>????????? Csmacro.exe ????Path·????</p> <p>????????????????????????????? Pre-build ?????Csmacro.exe $(ProjectDir)</p> <p>?????????????????磬Patch.cs ?????????</p> <p>1: #region include &quot;Csmacro_Template.cs&quot; <br /> 2: #endregion <br /> 3: <br /> 4: #if NET2 <br /> 5: <br /> 6: namespace System.Runtime.CompilerServices <br /> 7: {<br /> 8: public class ExtensionAttribute : Attribute { } <br /> 9: }<br /> 10: <br /> 11: namespace System<br /> 12: {<br /> 13: public delegate void Action();<br /> 14: public delegate void Action&lt;T0,T1&gt;(T0 t0,T1 t1);<br /> 15: }<br /> 16: <br /> 17: #endif</p> <p>#region include ????????? Csmacro ????????? C#?????(2): ??дC#?????????????????????????? ?????????????????????? Patch_Csmacro.cs ????????????£?</p> <p>1: #define NET2 <br /> 2: <br /> 3: #if NET2 <br /> 4: <br /> 5: namespace System.Runtime.CompilerServices <br /> 6: { <br /> 7: public class ExtensionAttribute : Attribute { } <br /> 8: } <br /> 9: <br /> 10: namespace System<br /> 11: {<br /> 12: public delegate void Action();<br /> 13: public delegate void Action&lt;T0,T1&gt;(T0 t0,T1 t1);<br /> 14: }<br /> 15: <br /> 16: #endif</p> <p>?????????????? Patch_Csmacro.cs ?????????????</p> <p>???????????target??????????????????target??????????</p> </div> [.Net???]aspx??????????????iis????????cmd??????? http://www.haxv.top//tech/4333.html www.haxv.top .Net??? 2012/11/22 10:06:26 <p><strong>???????</strong></p> <p>1???????????????????????????????????guest?飬?????д???????????????iis???????????????</p> <p>2??</p> <p>&lt;system.web&gt;</p> <p>&lt;identity impersonate=&quot;true&quot; /&gt;</p> <p>&lt;/system.web&gt;</p> <p>????????????C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG&nbsp; web.config ?е????μ????????????????????????iis????????cmd??????С?</p> <p>&lt;/location&gt;</p> <p>&lt;system.web&gt;</p> <p>&lt;identity impersonate=&quot;true&quot; /&gt;</p> <p>&lt;/system.web&gt;</p> <p>&lt;system.net&gt;</p> <p>3??asp.net1.1 ??machine.config C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG ??????&lt;identity impersonate=&quot;false&quot; userName=&quot;&quot; password=&quot;&quot;/&gt; ??false ???true</p> <p>????????????????????????????????</p> <p>??????????????????iis??????????????cmd??</p> [PHP???]php?????????????????? http://www.haxv.top//tech/4288.html www.haxv.top PHP??? 2012/10/23 11:25:05 <p>php??????????????????????????????????</p> <p>????????????????????????????????????????????????μ?????????????????????????????????????????????????????????????????????????????????????β?????</p> <p>???????????php?????????? header(&quot;Content-type: text/html; charset=UTF-8&quot;); UTF-8???????????????????????</p> [Asp???]ASP???Application????????? http://www.haxv.top//tech/4130.html downcc.com Asp??? 2012/8/21 22:20:21 <p>Asp?е? Application???????????????</p> <p>?????????????????????????????????Application??????</p> <p><strong>application.contents.removeall&nbsp; '??????л???</strong></p> <p>???????????application????,?????????????application(&quot;login&quot;)=true????????.???????????????????ε?application(&quot;login&quot;)=ture<br /> ???????????????????false.<br /> ??????????????application(&quot;login&quot;)???,??????????false???????????е??,??????????????????????????.<br /> <br /> ??session????????????????,?????????.??session????????????????????????.<br /> <br /> ?????????????????????,???user1???????????,?????????????????application(&quot;login&quot;)???,????????????????????????????.????????session_OnEnd?????????ε????????,??????????????application(&quot;login&quot;)=false??null?????????.????????session.tiomeout?????????,?????????????????????????????????.????????????,????????,????????????????д?????????????,???user2?????????????.???,?????????????????????????????м??,????????????????,????????????????????,??????9?????????????????????????????????,????????????′???????????.????д???С?????????????ajax,???????1????????????????????,??????????????????????1????????????????????,???????????,???????,???1??????????????.<br /> <br /> ???????????,???????????session????????κη????????????,???????????????????,???,???????????,????????????2???,????????????????????????????.?????????????,?????????????,???????????????????????.<br /> <br /> ?????,???????????????????????,??????д???.user1????????application(&quot;login&quot;)????????????.???????????д,??user2????????application???,?????????,????????????????.????????:<br /> 1,?????????????,????????????????login???????????application??????.??????????????????????????????.???????????????????????.??????????????,????????е????????????,????session_OnEnd????в???????????????application???????.<br /> 2.?????????????,application???????????????,???????????application????????,???????????????????.?????????e???,?????????????????.????????????????????????????????н?????.???????????????,?????????,д???ajax????application???н??????.???????????????н?????.?????????????,session_OnEnd?????г????????,???????????????,????????????????????????.<br /> <br /> ???,?????????????,??????????????ν??б??,?????????????????????application????,???????????ζ???.?????????????.??????????????????application?????????.<br /> <br /> ?¥,session??????????????????,???????????????????????????????????????????????????????????仰:?????????????????????????????session??.??application??????????,????????????????????????????.???????????????÷?????????????!<br /> ??¥,??????????????????????,????,???????????????????????????????????????????????,????????????????????????????????,?????,???????????????????е?,????????????????????.<br /> <br /> ????????????????????????????????????????????????????login??????,???????session?,?????????н?????ε???ж???.?????????????,?????????????????session(&quot;username&quot;),??????????????????????????????,??????????????????,????????????治???????</p> [PHP???]????ISBN??php??ISBN??У?麯????? http://www.haxv.top//tech/4033.html downcc.com PHP??? 2012/5/30 10:04:44 <p>???? ??????????<strong>ISBN????????</strong>????????????????????????????????????ISBN??У?麯????php?棩</p> <p>??????д???????????????????У?????<strong>ISBN??</strong>???????????Щ?????????????ISBN?????????????????ο???????????? &ndash; ??????????滹????????????ISBN??</p> <p>??????????International Standard Book Number??ISBN??????is-ben???????????????????????????????????????????????????????????????????????????????з?????鼮????????????????????????????????????????????°汾???????????????????????????????????????????????μ???????????????????????????????????????????????????????????</p> <p>????????????????ISBN????10λ??13λ?????????10λ??ISBN??2007??1????????????????3???????ISBN????13λ??????????????????????????????????????????10λISBN?????黹???о????????????????У?????ISBN????????????????????10λ??13λ?????????????????????ISBN??????λ??У??????????У??ISBN???????????????????ISBN??У???????????????λ?????????????У??????У??ISBN????????????????????У???????????????ISBN??????????????????ISBN??У??????</p> <p><strong>У????????????10??</strong></p> <p>??????????????????9λ???7-309-04547</p> <p>????????S??S = 7&times;10??3&times;9??0&times;8??9&times;7??0&times;6??4&times;5??5&times;4??4&times;3??7&times;2 = 226</p> <p>????S&divide;11??????M??M = 226 mod 11 = 6</p> <p>????11 &ndash; M ???N??N = 11 &minus; 6 = 5</p> <p>???N = 10??У?????????&quot;X&quot;</p> <p>???N = 11??У??????????&quot;0&quot;</p> <p>???N??????????У??????????N&nbsp;</p> <p>??????????У??????5????????????ISBN????7-309-04547-6?????У?????</p> <p><strong>У????????????13??</strong></p> <p>??????????????????12λ???978-986-181-728</p> <p>????????S??S = (9&times;1)+(7&times;3)+(8&times;1)+(9&times;3)+(8&times;1)+(6&times;3)+(1&times;1)+(8&times;3)+(1&times;1)+(7&times;3)+(2&times;1)+(8&times;3) = 164</p> <p>????S&divide;10??????M??M = 164 mod 10 = 4</p> <p>????10 &ndash; M ???N??N = 10 &minus; 4 = 6</p> <p>???N = 10??У??????????&quot;0&quot;</p> <p>???N??????????У??????????N&nbsp;</p> <p>??????????У??????6???????????????????? ISBN 978-986-181-728-6</p> <p>????????????????????????д??ISBN??У?麯????php?棩???????????????????</p> <p>function isbn_sum($isbn, $len)<br /> {<br /> /* <br /> &nbsp;* ?ú??????????ISBN????? <br /> &nbsp;* ?????????<br /> &nbsp;*&nbsp;&nbsp; $isbn : isbn??<br /> &nbsp;*&nbsp;&nbsp; $len&nbsp; : isbn????<br /> &nbsp;*/<br /> &nbsp;&nbsp;&nbsp; $sum = 0;<br /> &nbsp;&nbsp;&nbsp; if ($len == 10)<br /> &nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ($i = 0; $i &lt; $len-1; $i++)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sum = $sum + (int)$isbn[$i] * ($len - $i);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; elseif ($len == 13)<br /> &nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ($i = 0; $i &lt; $len-1; $i++)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($i % 2 == 0)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sum = $sum + (int)$isbn[$i];<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sum = $sum + (int)$isbn[$i] * 3;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; return $sum;<br /> }<br /> function isbn_compute($isbn, $len)<br /> {<br /> /* <br /> * ?ú??????????ISBN?λУ????<br /> * ?????????<br /> *&nbsp;&nbsp; $isbn : isbn??<br /> *&nbsp;&nbsp; $len&nbsp; : isbn????<br /> */<br /> &nbsp;&nbsp;&nbsp; if ($len == 10)<br /> &nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $digit = 11 - isbn_sum($isbn, $len) % 11;</p> <p>&nbsp; if ($digit == 10)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rc = 'X';<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if ($digit == 11)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rc = '0';<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rc = (string)$digit;<br /> &nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; else if($len == 13)<br /> &nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $digit = 10 - isbn_sum($isbn, $len) % 10;</p> <p>&nbsp; if ($digit == 10)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rc = '0';<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rc = (string)$digit;<br /> &nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp; return $rc;<br /> }<br /> function is_isbn($isbn)<br /> {<br /> /* <br /> &nbsp;* ?ú????????ж?????ISBN?? <br /> &nbsp;* ?????????<br /> &nbsp;*&nbsp;&nbsp;&nbsp; $isbn : isbn??<br /> &nbsp;*/<br /> &nbsp;&nbsp;&nbsp; $len = strlen($isbn);<br /> &nbsp;&nbsp;&nbsp; if ($len!=10 &amp;&amp; $len!=13)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br /> &nbsp;&nbsp;&nbsp; $rc = isbn_compute($isbn, $len);<br /> &nbsp;&nbsp;&nbsp; if ($isbn[$len-1] != $rc)&nbsp;&nbsp; /* ISBNβ????????????У?????? */<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br /> &nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1;<br /> }</p> <p>????д?ú?????????????????????????????</p> <p><span ><font color="#000000">&lt;?php echo is_isbn('9787507421781') ? 'У?????' : 'У?????'; ?&gt;</font></span></p> [PHP???]??php??????????????????? http://www.haxv.top//tech/4032.html downcc.com PHP??? 2012/5/30 10:02:26 <p>PHP????</p> <pre > &lt;?php /** * ????:????????? * ????:phpox * ????:Thu May 17 09:57:05 CST 2007 */ class CreatMiniature { //???????? var $srcFile=&quot;&quot;; //?? var $echoType; //??????????link--????????????file--???????? var $im=&quot;&quot;; //??????? var $srcW=&quot;&quot;; //???? var $srcH=&quot;&quot;; //???? //?????????????? function SetVar($srcFile,$echoType) { if (!file_exists($srcFile)){ echo '????????????!'; exit(); } $this-&gt;srcFile=$srcFile; $this-&gt;echoType=$echoType; $info = &quot;&quot;; $data = GetImageSize($this-&gt;srcFile,$info); switch ($data[2]) { case 1: if(!function_exists(&quot;imagecreatefromgif&quot;)){ echo &quot;???GD???????GIF??????????????Jpeg??PNG?????&lt;a href='javascript:go(-1);'&gt;????&lt;/a&gt;&quot;; exit(); } $this-&gt;im = ImageCreateFromGIF($this-&gt;srcFile); break; case 2: if(!function_exists(&quot;imagecreatefromjpeg&quot;)){ echo &quot;???GD???????jpeg???????????????????????????&lt;a href='javascript:go(-1);'&gt;????&lt;/a&gt;&quot;; exit(); } $this-&gt;im = ImageCreateFromJpeg($this-&gt;srcFile); break; case 3: $this-&gt;im = ImageCreateFromPNG($this-&gt;srcFile); break; } $this-&gt;srcW=ImageSX($this-&gt;im); $this-&gt;srcH=ImageSY($this-&gt;im); } //???????????? function Distortion($toFile,$toW,$toH) { $cImg=$this-&gt;CreatImage($this-&gt;im,$toW,$toH,0,0,0,0,$this-&gt;srcW,$this-&gt;srcH); return $this-&gt;EchoImage($cImg,$toFile); ImageDestroy($cImg); } //????????????????? function Prorate($toFile,$toW,$toH) { $toWH=$toW/$toH; $srcWH=$this-&gt;srcW/$this-&gt;srcH; if($toWH&lt;=$srcWH) { $ftoW=$toW; $ftoH=$ftoW*($this-&gt;srcH/$this-&gt;srcW); } else { $ftoH=$toH; $ftoW=$ftoH*($this-&gt;srcW/$this-&gt;srcH); } if($this-&gt;srcW&gt;$toW||$this-&gt;srcH&gt;$toH) { $cImg=$this-&gt;CreatImage($this-&gt;im,$ftoW,$ftoH,0,0,0,0,$this-&gt;srcW,$this-&gt;srcH); return $this-&gt;EchoImage($cImg,$toFile); ImageDestroy($cImg); } else { $cImg=$this-&gt;CreatImage($this-&gt;im,$this-&gt;srcW,$this-&gt;srcH,0,0,0,0,$this-&gt;srcW,$this-&gt;srcH); return $this-&gt;EchoImage($cImg,$toFile); ImageDestroy($cImg); } } //??????С?ü?????? function Cut($toFile,$toW,$toH) { $toWH=$toW/$toH; $srcWH=$this-&gt;srcW/$this-&gt;srcH; if($toWH&lt;=$srcWH) { $ctoH=$toH; $ctoW=$ctoH*($this-&gt;srcW/$this-&gt;srcH); } else { $ctoW=$toW; $ctoH=$ctoW*($this-&gt;srcH/$this-&gt;srcW); } $allImg=$this-&gt;CreatImage($this-&gt;im,$ctoW,$ctoH,0,0,0,0,$this-&gt;srcW,$this-&gt;srcH); $cImg=$this-&gt;CreatImage($allImg,$toW,$toH,0,0,($ctoW-$toW)/2,($ctoH-$toH)/2,$toW,$toH); return $this-&gt;EchoImage($cImg,$toFile); ImageDestroy($cImg); ImageDestroy($allImg); } //?????????????? function BackFill($toFile,$toW,$toH,$bk1=255,$bk2=255,$bk3=255) { $toWH=$toW/$toH; $srcWH=$this-&gt;srcW/$this-&gt;srcH; if($toWH&lt;=$srcWH) { $ftoW=$toW; $ftoH=$ftoW*($this-&gt;srcH/$this-&gt;srcW); }</pre> [.Net???]???????????ó???DEFAULT WEB SITE???е?????????? http://www.haxv.top//tech/3949.html downcc.com .Net??? 2012/5/2 11:02:43 <p>???????????ó???&ldquo;DEFAULT WEB SITE&rdquo;?е??????????</p> <p>??????<br /> HTTP ???? 404.0 - Not Found<br /> ????????????????????????????????á?</p> <p>??????????<br /> ??? IsapiFilterModule <br /> ?? MapPath <br /> ??????? StaticFile <br /> ??????? 0x80070002 <br /> ????? URL http://server:80/bin/index.html <br /> ????·?? C:\inetpub\wwwroot\bin\index.html <br /> ??????? ??δ??? <br /> ?????? ??δ??? <br /> &nbsp;?????????:<br /> &bull;?????????????? Web ??????????????<br /> &bull;URL ?д????<br /> &bull;?????????????????(?? URLScan)?????????????????<br /> &nbsp;?????????:<br /> &bull;?? Web ????????????????<br /> &bull;???????? URL??<br /> &bull;????????????????? HTTP ??????????????????????????????? SetStatus???й?????????????????????????????????????<br /> ???????????<br /> ??????????????????????????????????????????????3???????</p> <p>??????bin????д??????????????????????.</p> <p>?????? C:\Windows\System32\inetsrv\config ???????applicationHost.conf???????????????δ???</p> <p style="border-bottom: #bebebe 2px dashed; border-left: #bebebe 2px dashed; padding-bottom: 5px; background-color: #fdfddf; margin: 5px; padding-left: 5px; padding-right: 5px; border-top: #bebebe 2px dashed; border-right: #bebebe 2px dashed; padding-top: 5px">&lt;hiddenSegments applyToWebDAV=&quot;true&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;web.config&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;bin&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_code&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_GlobalResources&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_LocalResources&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_WebReferences&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_Data&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add segment=&quot;App_Browsers&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/hiddenSegments&gt;&nbsp;&nbsp;<br /> &nbsp;</p> <p>??&nbsp; &lt;add segment=&quot;bin&quot; /&gt; ??????????iis?????????</p> <p>???????.net????????bin????У??????漰???Щ??????????????????????????????????????????д??????????????????????????????????????????????????????У???????????????鷳??</p> [PHP???]PHP????????????? http://www.haxv.top//tech/3948.html downcc.com PHP??? 2012/5/2 10:53:54 <p>??PHP???????????????????SEO???????????????????????????????????PHP??????HTML????ж????????????????PHP??塢??????????澲????????????PHP?????????????PHP?????????????????澲???????????????????????α?????????url ??д?????????????????????????PHP????澲??????????</p> <p><strong>????PHP?????</strong></p> <p>PHP?????????????????????????????HTML?????????????????PHP???????????????α????????????????????PHP????????????????????</p> <p><strong>PHP??????HTML???????</strong></p> <p>1??????PHP????????????</p> <p>PHP????????????????????簲??????PHP Smarty?????????????</p> <p>2?????PHP?????д?????????????</p> <p><strong>PHP????????????????</strong></p> <p>&lt;? <br /> $out1 = &quot;&lt;html&gt;&lt;head&gt;&lt;title&gt;PHP???????????&lt;/title&gt;&lt;/head&gt; <br /> &lt;body&gt;???????PHP????????????<a href="http://www.haxv.top">www.haxv.top</a>?????????????PHP?????澲???????? <br /> &lt;/body&gt;&lt;/html&gt;&quot;; <br /> $fp = fopen(&quot;leapsoulcn.html&quot;,&quot;w&quot;); <br /> if(!$fp) <br /> { <br /> echo &quot;System Error&quot;; <br /> exit(); <br /> } <br /> else { <br /> fwrite($fp,$out1); <br /> fclose($fp); <br /> echo &quot;Success&quot;; <br /> } <br /> ?&gt;</p> <p>3?????PHP????????????Output Control???????????</p> <p>????????????Output Control?????????ú???????????????HTML??棬???????PHP?????д??????</p> <p>PHP????????????????</p> <p>&lt;? <br /> ob_start(); <br /> echo &quot;&lt;html&gt;&quot;. <br /> &quot;&lt;head&gt;&quot;. <br /> &quot;&lt;title&gt;PHP???????????&lt;/title&gt;&quot;. <br /> &quot;&lt;/head&gt;&quot;. <br /> &quot;&lt;body&gt;???????PHP????????????<a href="http://www.haxv.top">www.haxv.top</a>?????????????PHP?????澲????????&lt;/body&gt;&quot;. <br /> &quot;&lt;/html&gt;&quot;; <br /> $out1 = ob_get_contents(); <br /> ob_end_clean(); <br /> $fp = fopen(&quot;leapsoulcn.html&quot;,&quot;w&quot;); <br /> if(!$fp) <br /> { <br /> echo &quot;System Error&quot;; <br /> exit(); <br /> } <br /> else <br /> { <br /> fwrite($fp,$out1); <br /> fclose($fp); <br /> echo &quot;Success&quot;; <br /> } <br /> ?&gt; <br /> ??????????PHP??????????????????н????????????????????????PHP????????棬????????????????????????????????????????????????????????????HTML???????????????????????</p> <p>PHP???????????·????????????棬????????HTML???????????????include??HTML??????????????????????????????????е????????????????PHP?????д??????????????д?????HTML???????С?PHP?????д????</p> <p>???????????????????????HTML???????????????????????ob_start()??ob_get_contents()??ob_end_clean()??</p> <p>????</p> <p>1??ob_start??????????????????????棬??????ob_start?????????κ????????????????</p> <p>2??ob_get_contents???????????????????е?????????????????????????????????ob_end_clean??????????????????????????????</p> <p>3??ob_end_clean????????????????е???????????棬???????True?????????False</p> <p>PHP????????????Output Control???к?????????????????</p> <p>????????PHP??????HTML????????????????????????????????????????????????????????????????????</p> [Asp???]???:?????????Microsoft OLE DB Provider for ODBC Drivers (0x80004005) ...??????? http://www.haxv.top//tech/3947.html downcc.com Asp??? 2012/5/2 10:45:20 <p>?????????Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] ???????????????????????<br /> ??????????к?????????????<br /> ??????????????</p> <p>???????<br /> ??Access???Everyone?????????????? <br /> &lt;1&gt;?????????-&gt;????????-&gt;??-&gt;???&ldquo;??ü??????????????&rdquo;?????? <br /> &lt;2&gt;??????????wwwroot????л?data?????-&gt;????-&gt;???-&gt;???everyone-&gt;???????????<br /> ???:<br /> WIN2K????????WINNT????NTFS????<br /> ???????е???ж????????????á?<br /> ?????HTTP??WWW????????????????? iusr_??????? ??? ,??????guest?顣<br /> ?????HTTP???????????ASP??JSP???????PHP??.NET????????????????????<br /> ???磺<br /> ????????????????????趨?????μ????????=????????+1<br /> ???<br /> conn.execute(&quot;update arts set clicks=clicks+1 where id=n&quot;)<br /> ????????? iusr_??????? ?????ж???????д????????????.<br /> ???????:<br /> ??????????????<br /> ?????????????????????? iusr_??????? ?????д???(????????????everyone</p> [Asp???]?????ADODB.Stream ???? &#39;800a0bbc&#39; д???????? http://www.haxv.top//tech/3946.html downcc.com Asp??? 2012/5/2 10:41:00 <p>&nbsp;&nbsp;&nbsp; ??????????e??????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ????adodb.stream??savetofile?????????????, ADODB.Stream ???? 800a0bbc д?????????</p> <p>&nbsp;&nbsp;&nbsp; ????????:</p> <p>&nbsp;&nbsp;&nbsp; 1???????????????????????δ????savetofile??????????????</p> <p>&nbsp;&nbsp;&nbsp; 2??·???????server.MapPath()????????????: <br /> &nbsp;&nbsp;&nbsp; ???·???????·?????????????????д?????????<br /> &nbsp;&nbsp;&nbsp; ???·??????·????????浽??????c:\\windows\\system32??·????(??????????)??</p> <p>&nbsp;&nbsp;&nbsp; 3??????? '80070070' ?????????? ???????800a0bbc????</p> <p>&nbsp;&nbsp;&nbsp; 4???????????????д?????????д??????????? ??</p> <p>&nbsp;&nbsp;&nbsp; ????????????????????????????????????????????????????????????????????????????????????????????????????IIS????????????·??????????????????????????????????????·?????????????????ASP???ManageAddSave.asp&rarr;???????????)??????????? &ldquo;dr.SaveToFile FullPath,2&rdquo;д?????????????(UpFile.inc.inc&rarr;???????????????????)????????????????????????????????·?? &ldquo;formPath=&quot;/UploadFile/NewsFile&quot;'????????&rdquo;???磺????????????????&lsquo;web2&rsquo;??·???????? &ldquo;formPath=&quot;/web2/UploadFile/NewsFile&quot;'????????&rdquo;???????????????????!</p> <p>&nbsp;&nbsp;&nbsp; 5?????????г??????ε???????????????У?server.mappath ?????????????&ldquo;/&rdquo;??????? &ldquo;/upload/11111&rdquo;??? &quot;upload/1111&quot;</p> <p>&nbsp;&nbsp;&nbsp; 6??2009??6??12?????ll?????????????????????????????????formpath?&ldquo;test/upload/&rdquo;????????????????????test·???????????????</p> <p>&nbsp;&nbsp;&nbsp; upfile.asp&nbsp;&nbsp;&nbsp;</p> <p>&nbsp;&nbsp;&nbsp; 1) formpath=&ldquo;test/upload/&rdquo;??--&gt; formpath=upload/&quot;</p> <p>&nbsp;&nbsp;&nbsp; 2) if fso.FolderExists(&quot;e:/jiaoling-zuoye/javatest/test/upload/&quot;&amp;session(&quot;CurUserId&quot;))=false then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fso.CreateFolder(&quot;e:/jiaoling-zuoye/javatest/test//upload/&quot;&amp;session(&quot;CurUserId&quot;))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</p> <p>&nbsp;&nbsp;&nbsp; ????????????????е?λ?????e:/jiaoling-zuoye/javatest</p> [Asp???]asp???????/asp???????/asp??????? http://www.haxv.top//tech/3877.html ???????? Asp??? 2012/4/13 22:00:07 <p>asp???????/asp???????/asp???????</p><p>asp??active server page?????????????????????????????IIS?????????????????????ASP????????????????HTML??CSS??javascript??VBscript?????ASP??????ɡ????????????????ü??±????????????????ASP??????????????????????????????????????????ASP?????????к??HTML?????</p> [Asp???]Asp????HTML??????? http://www.haxv.top//tech/3561.html downcc.com Asp??? 2012/2/20 20:22:59 <p>?????:FSO</p> <p>Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br /> NewFile=Server.MapPath(&quot;/asp/chap06/at/newfile.html&quot;)<br /> '???????/newfile.html,??????????????????<br /> Set a = fs.CreateTextFile(NewFile, True)<br /> Response.Write&quot;????????????&quot;<br /> a.close<br /> File=Server.MapPath(&quot;newfile.html&quot;)<br /> Set txt=fs.OpenTextFile(File,8,True) '??????????βд??????????<br /> data1=&quot;??仰?????WriteLine????д??????~~&quot;<br /> txt.WriteLine data1<br /> data2=&quot;??仰?????Write????д??????~~&quot;<br /> txt.Write data2<br /> txt.Close</p> <p>??????:XMLHTTP</p> <p>&lt;%<br /> Set xml = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)<br /> '??????????滻????????????????,??????http://????????·??,????д???·??<br /> xml.Open &quot;GET&quot;, &quot;http://www.haxv.top&quot;, False<br /> xml.Send<br /> BodyText=xml.ResponseBody<br /> BodyText=BytesToBstr(BodyText,&quot;gb2312&quot;)<br /> Set xml = Nothing<br /> Dim fso, MyFile<br /> Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br /> Set MyFile= fso.CreateTextFile(server.MapPath(&quot;aa.htm&quot;), True)<br /> MyFile.WriteLine(BodyText)<br /> MyFile.Close</p> <p>????:</p> <p>1</p> <p>??????????????index.asp?id=1/index.asp?id=2/index.asp?id=3/?????????<br /> ??棬???????ndex1.htm,index2.htm,index3.htm??????????棺</p> <p><br /> &lt;%<br /> dim strUrl,Item_Classid,id,FileName,FilePath,Do_Url,Html_Temp<br /> Html_Temp=&quot;&lt;UL&gt;&quot;<br /> For i=1 To 3<br /> Html_Temp = Html_Temp&amp;&quot;&lt;LI&gt;&quot;<br /> Item_Classid = i<br /> FileName = &quot;Index&quot;&amp;Item_Classid&amp;&quot;.htm&quot;<br /> FilePath = Server.MapPath(&quot;/&quot;)&amp;&quot;\&quot;&amp;FileName Html_Temp = Html_Temp&amp;FilePath&amp;&quot;&lt;/LI&gt;&quot;<br /> Do_Url = &quot;http://&quot;<br /> Do_Url = Do_Url&amp;Request.ServerVariables(&quot;SERVER_NAME&quot;)&amp;&quot;/main/index.asp&quot;<br /> Do_Url = Do_Url&amp;&quot;?Item_Classid=&quot;&amp;Item_Classid</p> <p><br /> strUrl = Do_Url<br /> dim objXmlHttp<br /> set objXmlHttp = Server.createObject(&quot;Microsoft.XMLHTTP&quot;)<br /> objXmlHttp.open &quot;GET&quot;,strUrl,false<br /> objXmlHttp.send()<br /> Dim binFileData<br /> binFileData = objXmlHttp.responseBody<br /> Dim objAdoStream<br /> set objAdoStream = Server.createObject(&quot;ADODB.Stream&quot;)<br /> objAdoStream.Type = 1<br /> objAdoStream.Open()<br /> objAdoStream.Write(binFileData)<br /> objAdoStream.SaveToFile FilePath,2<br /> objAdoStream.Close()</p> <p>Next<br /> Html_Temp = Html_Temp&amp;&quot;&lt;UL&gt;&quot;<br /> %&gt;</p> <p>&lt;%<br /> Response.Write ( &quot;????????????&quot; )<br /> Response.Write ( &quot;&lt;BR&gt;&quot; )<br /> Response.Write Html_Temp<br /> %&gt;</p> <p>Function BytesToBstr(body,Cset)<br /> dim objstream<br /> set objstream = Server.CreateObject(&quot;adodb.stream&quot;)<br /> objstream.Type = 1<br /> objstream.Mode =3<br /> objstream.Open<br /> objstream.Write body<br /> objstream.Position = 0<br /> objstream.Type = 2<br /> objstream.Charset = Cset<br /> BytesToBstr = objstream.ReadText<br /> objstream.Close<br /> set objstream = nothing<br /> End Function<br /> %&gt;</p> <p>2</p> <p>&lt;%@LANGUAGE=&quot;VBSCRIPT&quot; CODEPAGE=&quot;936&quot;%&gt;<br /> &lt;%<br /> public tempelatefile,tmpdata<br /> sub ofile()'????????????????????tmpdata<br /> on error resume next<br /> tmpdata=&quot;&quot;<br /> set Astream=Server.CreateObject (&quot;Adodb.Stream&quot;)<br /> Astream.type=2'??????????<br /> Astream.Mode = 3'??д<br /> Astream.open<br /> Astream.CharSet = &quot;GB2312&quot;'?????<br /> Astream.LoadFromFile(tempelatefile)'????????<br /> Assp=Astream.size<br /> if err.number&lt;&gt;0 then<br /> xz=-18<br /> response.Write tempelatefile&amp;&quot;&lt;br&gt;&quot;<br /> err.clear<br /> tmpdata=&quot;&quot;<br /> else<br /> tmpdata=Astream.ReadText(Assp)<br /> end if</p> <p>end sub</p> <p>sub save_file()<br /> ofile()<br /> recfilen=server.MapPath(dts)<br /> Astream.Flush<br /> Astream.close<br /> Astream.type=2<br /> Astream.Mode = 3<br /> Astream.open<br /> Astream.CharSet = &quot;GB2312&quot;<br /> Astream.position=0<br /> Astream.Writetext tmpdata,1'д???????stream<br /> Astream.SaveToFile recfilen,2'???浽???<br /> end sub</p> <p>function dts()'????????????<br /> if len(month(now()))&gt;1 then<br /> mm=month(now())<br /> else<br /> mm=&quot;0&quot;&amp;month(now())<br /> end if<br /> if len(day(now()))&gt;1 then<br /> d=day(now())<br /> else<br /> d=&quot;0&quot;&amp;day(now())<br /> end if<br /> if len(hour(now()))&gt;1 then<br /> h=hour(now())<br /> else<br /> h=&quot;0&quot;&amp;hour(now())<br /> end if<br /> if len(minute(now()))&gt;1 then<br /> m=minute(now())<br /> else<br /> m=&quot;0&quot;&amp;minute(now())<br /> end if<br /> if len(second(now()))&gt;1 then<br /> s=second(now())<br /> else<br /> s=&quot;0&quot;&amp;second(now())<br /> end if<br /> Randomize<br /> upperbound=9999<br /> lowerbound=1000<br /> rds=Int((upperbound - lowerbound + 1) * Rnd + lowerbound) <br /> dts=&quot;htm/&quot;&amp;year(now())&amp;mm&amp;d&amp;h&amp;m&amp;s&amp;rds&amp;&quot;.htm&quot;<br /> end function<br /> title=request.Form(&quot;title&quot;)<br /> content=request.Form(&quot;content&quot;)<br /> tmpdata=replace(tmpdata,&quot;&lt;title&gt;&lt;/title&gt;&quot;,title)'????????????滻<br /> tmpdata=replace(tmpdata,&quot;&lt;content&gt;&lt;/content&gt;&quot;,content)<br /> tempelatefile=server.MapPath(&quot;tempelate/1.htm&quot;)'??????<br /> save_file()<br /> %&gt;</p> [PHP???]PHP open_basedir???Щ???? http://www.haxv.top//tech/3503.html downcc.com PHP??? 2012/2/1 13:25:29 <p>open_basedir: ??????????????????????????;<br /> &mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;<br /> ??????php.ini?е?????????????????:<br /> ; open_basedir, if set, limits all file operations to the defined directory<br /> ; and below. This directive makes most sense if used in a per-directory or<br /> ; per-virtualhost web server configuration file. This directive is<br /> ; *NOT* affected by whether Safe Mode is turned On or Off.<br /> open_basedir = .<br /> open_basedir??????????????????Χ???????????????????????????·????????÷???&rdquo;.&rdquo;?????????????????open_basedir??????????????????,???????????????????: ??&rdquo;open_basedir = /dir/user&rdquo;, ????? &ldquo;/dir/user&rdquo; ?? &ldquo;/dir/user1&Prime;???????????????????????????????????????????????б?????·?????????????ó?:&ldquo;open_basedir = /dir/user/&rdquo;</p> <p>open_basedir???????????????, ??Windows???÷??????,???κ???????????e??????????????????Apache???????????е?open_basedir·?????????С?</p> <p>???????????????Apache???????????????????????:</p> <p>(a) ??Apache??httpd.conf??Directory????????÷???:</p> <p>php_admin_value open_basedir /usr/local/apache/htdocs/<br /> #????????????ο?????:<br /> php_admin_value open_basedir /usr/local/apache/htdocs/:/tmp/</p> <p>(b) ??Apache??httpd.conf??VirtualHost????????÷???:<br /> php_admin_value open_basedir /usr/local/apache/htdocs/<br /> #????????????ο?????:<br /> php_admin_value open_basedir /var/www/html/:/var/tmp/</p> <p>(c) ???VirtualHost????????open_basedir???, ???????????????????????php.ini?е?open_basedir???????,??????????????????, ??????????????VirtualHost?????????????. ????,??????php.ini??????open_basedir = .:/tmp/, ????????????????????(??PHP?????????????)??/tmp/??.</p> <p>?????: ????php.ini???????????????????/tmp/, ???????open_basedir?????????/tmp/,?????????????. ?°?php??????&rdquo;open_basedir restriction in effect&rdquo;<br /> ???????, ??move_uploaded_file()????????????????/tmp/???μ???????,?????????????????1???.</p> [Asp???]iis????Server Application Error???????? http://www.haxv.top//tech/3502.html downcc.com Asp??? 2012/2/1 13:22:27 <p>???<br /> IIS5??HTTP 500????????????????????????????????????????????????????ASP???????????HTM???????????????????????????????????????????????????????????????????&hellip;&hellip;</p> <p>????<br /> <strong>?.???????</strong></p> <p>IIS5??HTTP 500????????????????????????????????????????????????????ASP???????????HTM???????????????????????????????????????????????????????????</p> <p>???????£?</p> <p>(?)IE?е????</p> <p>??????????????????е?asp????????????μ????:</p> <p>?????????</p> <p>??????????????????????????????</p> <p>---------------------------------------------</p> <p>???????в?????</p> <p><br /> ?? http://127.0.0.1 ?????????????????????????</p> <p>??????°????????????????</p> <p><br /> HTTP 500 - ?????????????</p> <p>Internet ???????</p> <p>--------------------------------------------------------------------------------</p> <p>????????????????</p> <p>????????</p> <p>Microsoft ???</p> <p>??????:</p> <p>Server Application Error</p> <p>The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.</p> <p>(??)?????????(2??)</p> <p>???????: ??????</p> <p>??????: Security</p> <p>???????: ???/???</p> <p>??? ID: 529</p> <p>????: 2001-9-9</p> <p>???: 11:17:07</p> <p>???: NT AUTHORITY\SYSTEM</p> <p>?????: MYSERVER</p> <p>????:</p> <p>??????:</p> <p>???: ?????δ??????????</p> <p>?????: IWAM_MYSERVER</p> <p>??: MYDOM</p> <p>???????: 4</p> <p>???????: Advapi</p> <p>???????????: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0</p> <p>???????: MYSERVER</p> <p><br /> ???????: ??????</p> <p>??????: Security</p> <p>???????: ??????</p> <p>??? ID: 681</p> <p>????: 2001-9-9</p> <p>???: 11:17:07</p> <p>???: NT AUTHORITY\SYSTEM</p> <p>?????: MYSERVER</p> <p>????:</p> <p>????????: IWAM_MYSERVER</p> <p>????????: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0</p> <p>??????: MYSERVER</p> <p>δ??????????????: 3221225578</p> <p><br /> (??)??????е???(2??)</p> <p>???????: ????</p> <p>??????: DCOM</p> <p>???????: ??</p> <p>??? ID: 10004</p> <p>????: 2001-9-9</p> <p>???: 11:20:26</p> <p>???: N/A</p> <p>?????: MYSERVER</p> <p>????:</p> <p>DCOM ????????&ldquo;????????????????????????????????в????????? &rdquo;???????????? .\IWAM_MYSERVER ???????з?????:</p> <p>{3D14228D-FBE1-11D0-995D-00C04FD919C1}</p> <p><br /> ???????: ????</p> <p>??????: W3SVC</p> <p>???????: ??</p> <p>??? ID: 36</p> <p>????: 2001-9-9</p> <p>???: 11:20:26</p> <p>???: N/A</p> <p>?????: MYSERVER</p> <p>????:</p> <p>??????δ???????ó??? '/LM/W3SVC/4/Root'???????? 'RunAs ??????????&lt;????&gt;\&lt;?????&gt;?????&lt;?????&gt;'??</p> <p>?????????????????????????????? Microsoft ??????????: http://www.microsoft.com/contentredirect.asp ??</p> <p><br /> <strong>??.??????</strong></p> <p>??????????????????????????????????????IWAM?????????????????IWAM_MYSERVER??????????????????HTTP 500???????</p> <p><br /> ?????????HTTP500??????????????????????IWAM?????????????????IWAM???????IIS5???????????????????????????????????????????ó????Internet???????IWAM???????????????????NETBIOS??????????????????????????IWAM_MACHINE??????&ldquo;IWAM&rdquo;??????????&ldquo;_&rdquo;??????????NETBIOS??????ɡ??????????NETBIOS??????MYSERVER??????????????IWAM???????????IWAM_MYSERVER?????????IIS???????ISUR_MACHINE?????????????????</p> <p><br /> IWAM????????Active Directory??IIS metabase??????COM+??ó?????????????????????????????棬????????????????????????IWAM??????????????????????????????????????????????????????????????????BUG??????????????????IWAM?????????????????????????????IWAM?????????????????IIS??COM+??ó?????????IWAM???????????????IIS Out-Of-Process Pooled Applications???????????????????????????????IIS Out-Of-Process Pooled Applications??????????????????ID10004????????п?????&ldquo;???????з?????{3D14228D-FBE1-11D0-995D-00C04FD919C1} &rdquo;??????{3D14228D-FBE1-11D0-995D-00C04FD919C1} ??IIS Out-Of-Process Pooled Applications??KEY???????????IIS5??ó???HTTP 500???????????????????</p> <p><strong>??.?????</strong></p> <p>????????HTTP 500?????????????????????????????????????IWAM?????Active Directory??IIS metabase??????COM+??ó????е?????</p> <p>?????????????,????????????????????????????????????IWAM?????IWAM_MYSERVER???????</p> <p><br /> ?????????Active Directory??IWAM_MYSERVER????????</p> <p>??IWAM????????????????????????????????????????????????????????????????????????????IWAM????????????????????????????</p> <p>1?????&ldquo;???&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;???????&rdquo;-&gt;&quot;Active Directory?????????&quot;?????&ldquo;Active Directory?????????&rdquo;????????</p> <p>2??????&ldquo;user&rdquo;??????????&ldquo;IWAM_MYSERVER&rdquo;????????&ldquo;????????(T)...&rdquo;???????????????????????и?IWAM_MYSERVER?????μ???????????????ó?&ldquo;Aboutnt2001&rdquo;????????????????????????????????</p> <p><br /> ?????????IIS metabase??IWAM_MYSERVER????????</p> <p>????????????????к?????????????????????IIS metabase??IWAM_MYSERVER???????????????????????????IIS5?????????????adsutil.vbs????????λ??C:\inetpub\adminscripts?????£?λ???????????IIS5????????????????????</p> <p>adsutil.vbs??????????????????????÷?????????????????????????IWAM_MYSERVER???????????:</p> <p>adsutil SET w3svc/WAMUserPass Password</p> <p>&quot;Password&quot;??????????????IWAM?????μ?????????????IIS metabase??IWAM_MYSERVER????????????&ldquo;Aboutnt2001&rdquo;??????????</p> <p>c:\Inetpub\AdminScripts&gt;adsutil SET w3svc/WAMUserPass &quot;Aboutnt2001&quot;</p> <p>??????????????????????</p> <p>WAMUserPass: (String) &quot;Aboutnt2001&quot;</p> <p><br /> ?????????COM+??ó????????IWAM_MYSERVER??????</p> <p>???COM+??ó????????IWAM_MYSERVER?????????????????????????:???????????????MMC??????????????????IWAM?????????synciwam.vbs??</p> <p><br /> 1????????????MMC??????</p> <p>??1??????????????????????&ldquo;???&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;MMC&rdquo;?????????????,??&ldquo;???/?????????&rdquo;?????,??&ldquo;???????&rdquo;????????????</p> <p>??2?????&ldquo;???????&rdquo;-&gt;&ldquo;?????&rdquo;-&gt;&ldquo;??????&rdquo;-&gt;&ldquo;COM+??ó???&rdquo;-&gt;&ldquo;Out-Of-Process Pooled Applications&rdquo;?????&ldquo;Out-Of-Process Pooled Applications&rdquo;-&gt;&ldquo;????&rdquo;??</p> <p>??3???л???&ldquo;Out-Of-Process Pooled Applications&rdquo;?????????&ldquo;???&rdquo;?????&ldquo;????ó??????????????????&rdquo;?????&ldquo;?????&rdquo;????У????????&ldquo;IWAM_MYSERVER&rdquo;????Щ????????????????????????&ldquo;????&rdquo;??&ldquo;???????&rdquo;????????????????????&ldquo;Aboutnt2001&rdquo;??????????</p> <p>??4??????????&ldquo;??ó????????????????????????????????Щ????????&rdquo;???????ɡ?</p> <p>??5???????????IIS?н??????ЩWeb??&ldquo;??ó?????&rdquo;?????&ldquo;??????????&rdquo;,??????WEB??????COM+??ó????IWAM?????????????????????1??-??4????????????????Out of process application??IWAM???????</p> <p><br /> 2?????IWAM?????????synciwam.vbs</p> <p>???????????????IWAM????????????????????????????IIS5????????е????IWAM????????????д????????synciwam.vbs????????λ??C:\inetpub\adminscripts?????£?λ???????????IIS5????????????????????</p> <p>synciwam.vbs????÷???????</p> <p>cscript synciwam.vbs [-v|-h]</p> <p>&ldquo;-v&rdquo;????????? [PHP???]php???????????????? http://www.haxv.top//tech/3493.html downcc.com PHP??? 2012/1/29 11:29:36 <p>&lt;?<br /> $s = $_SERVER['QUERY_STRING'];<br /> if ($s == &quot;http://www.baidu.com&quot;)<br /> {<br /> $s = http://www.haxv.top;<br /> }<br /> if ($s == &quot;http://www.itmop.com&quot;)<br /> {<br /> $s = &quot;http://www.haxv.top&quot;;<br /> }<br /> header(&quot;Location:&quot;.$s.&quot;&quot;);<br /> ?&gt; <br /> <br /> ??????? header , ?????????????header ??????????????</p> [Asp???]Asp??????????fso??????? http://www.haxv.top//tech/3467.html downcc.com Asp??? 2012/1/9 20:59:45 <p>??????BuildPath<br /> ??????????.BulidPath(·??,?????)<br /> ???????·????????????????????????????????????\??????</p> <p>??????CopyFile<br /> ??????????.CopyFile(?·??,???·??[,?????])<br /> ????????????????????λ?????????λ?á??λ?????????????????·?????????\????????·????????<br /> ?????????????TURE????????λ?????????????????????????????FALSE?????????????????????????????????????????</p> <p>??????CopyFolder<br /> ??????????.CopyFolder(?·??,???·??[,?????])<br /> ??????????????д??λ?????????λ?á?</p> <p>??????CreateFolder<br /> ??????????.CreateFolder(???????)<br /> ????????????????С?</p> <p>??????CreateTextFile<br /> ??????????.CreateTextFile(?????[,?????[,????Unicode????]])<br /> ?????????????????????????TextStream?????????????????д???????????</p> <p>??????DeleteFile<br /> ??????????.DeleteFile(?????[,????????????])<br /> ?????????????????????????????????????????????????????TURE???????????????????????????FALSE??</p> <p>??????DeleteFolder<br /> ??????????.DeleteFolder(????[,??????????????])<br /> ???????????????У??????????????????????????????в????????TURE???????????????????????????FALSE??</p> <p>??????DriveExists<br /> ??????????.DriveExists(????????)<br /> ????????????????????????????TURE????????FLASH??</p> <p>??????FileExists<br /> ??????????.FileExists(?????)<br /> ?????????????????????????TURE????????FLASH??</p> <p>??????FolderExists<br /> ??????????.FolderExists(???????)<br /> ?????????????????д????????TURE????????FLASH??</p> <p>??????GetAbsolutePathname<br /> ??????????.GetAbsolutePathname(·??)<br /> ???????????·?з?????????????????·?????????????</p> <p>??????GetBaseName<br /> ??????????.GetBaseName(·??)<br /> ??????????????????????????????·???????????????????????????????</p> <p>??????GetDrive<br /> ??????????.GetDrive(????????)<br /> ??????????????????????????Drive????</p> <p>??????GetDriveName<br /> ??????????.GetDriveName(·??)<br /> ???????????????????·?????????????????????</p> <p>??????GetExtensionName<br /> ??????????.GetExtensionName(·??)<br /> ???????????????????????·??????????????????????</p> <p>??????GetFile<br /> ??????????.GetFile(???·??)<br /> ?????????????????·?????????????FILE????</p> <p>??????GetFileName<br /> ??????????.GetFileName(???·??)<br /> ?????????·???е????????</p> <p>??????GetFolder<br /> ??????????.GetFolder(?????·??)<br /> ???????????????????·???????????????Folder????</p> <p>??????GetParentFolderName<br /> ??????????.GetParentFolderName(?????·??)<br /> ???????????????????????????????????·???????????????????????С?</p> <p>??????GetSpecialFolder<br /> ??????????.GetSpecialFolder(????)<br /> ???????????????????WINDOWS???????????FOLDER?????????????????0(WindowsFolder)1(SystemFolder)2(TemporaryFolder)??</p> <p>??????GetTempName<br /> ??????????.GetTempName()<br /> ?????????????????????????????е????????????????????????????е??????</p> <p>??????MoveFile<br /> ??????????.MoveFile(?·??,???·??)<br /> ????????????????????λ????????????λ????????????</p> <p>??????MoveFolder<br /> ??????????.MoveFolder(?·??,???·??)<br /> ??????????????????д??λ????????????λ????????????</p> <p>??????OpenTextFile<br /> ??????????.OpenTextFile(?????[,????????[,???????????????[,?????д???]]])<br /> ?????????????????????????????????TextStream?????????????????????ForReading(1 ???)??ForWriting(2)??ForAppending(8)?????????????????????????TRUE??????????????????????FALSE???????д???????????0 (????????ASCII?????)??-1(????UNICODE?????)??-2(???????????)??</p> [.Net???]????????15λ??18λ(C#) http://www.haxv.top//tech/3464.html downcc.com .Net??? 2012/1/9 13:00:33 <p>????????15λ??18λ</p> <p>????18λ???</p> <p>18λ??????????????????????????1999??7??1??????GB11643-1999???????????????????????漲?? GB11643-1999?????????????GB11643-1989????????????????棬?????????????????&quot;????????&quot;?????&quot;??????????&quot;??????GB11643-1999????????????????????????GB11643-1989??GB11643-1999??????????????????????£? <br /> ?????Χ <br /> ?????漲??????????????????????????????????????????????????Ψ???????????????? <br /> ??????????? <br /> ???????????????????????л????????????????? <br /> ????????????????? <br /> 1???????? <br /> ??????????????????????????λ???????????λУ??????ɡ????????????????????????λ??????????λ???????????????λ???????????λ????У???? <br /> 2??????? <br /> ?????????????????????(?С?????)????????????????GB/T2260??漲??С? <br /> 3???????????? <br /> ?????????????????????????GB/T7408??漲??У???????????????÷????? <br /> 4??????? <br /> ???????????????????????Χ?????????????????????????????????????????????????????????????? <br /> 5??У???? <br /> ??1?????λ???????????????? <br /> S = Sum(Ai * Wi), i = 0, ... , 16 ??????17λ????????? <br /> Ai:?????iλ?????????????????? <br /> Wi:?????iλ??????????? <br /> Wi: 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2 <br /> ??2??????? <br /> Y = mod(S, 11)</p> <p>??3??????????????У???? <br /> Y: 0 1 2 3 4 5 6 7 8 9 10 <br /> У????: 1 0 X 9 8 7 6 5 4 3 2 <br /> ??????????£? <br /> ?????г?????: 11010519491231002X <br /> ????????: 440524188001010014 <br /> &nbsp;</p> <h5 align="left">15λ??18?????</h5> <p>??????л?????????????? GB 11643-1999?????й???????????漲????????????????????????????λ???????????λ????У??????ɡ????????????????????????λ??????????λ???????????????λ???????????λ????У????</p> <p>?????????????????????????(?С?????)???????????????????????????????????????????????????????λ???????????????????÷??????????????????????????????Χ??????????????????????????????????????????????????????????У???????????????λ??????????ISO 7064:1983.MOD 11-2У????????????????????????????ü???????</p> <p>15λ????????????????????????4λ????????????????19???????????1900??????????????????????????????</p> <p>???????????????????34052419800101001????????????????</p> <p>&sum;(ai&times;Wi)(mod 11)&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;&hellip;(1)</p> <p>???(1)?У? <br /> i----?????????????????????У?????????λ?????? <br /> ai----?????iλ?????????????? <br /> Wi----???iλ???????????????????????Wi=2??n-1??(mod 11)????ó???</p> <p>i 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1</p> <p>ai 3 4 0 5 2 4 1 9 8 0 0 1 0 1 0 0 1 a1</p> <p>Wi 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2 1</p> <p>ai&times;Wi 21 36 0 25 16 16 2 9 48 0 0 9 0 5 0 0 2 a1</p> <p>??????(1)???м???</p> <p>&sum;(ai&times;Wi) =??21+36+0+25+16+16+2+9+48++0+0+9+0+5+0+0+2) = 189</p> <p>189 &divide; 11 = 17 + 2/11</p> <p>&sum;(ai&times;Wi)(mod 11) = 2</p> <p>???????????????????????в???????У????????X??????????10??</p> <p>&sum;(ai&times;WI)(mod 11) 0 1 2 3 4 5 6 7 8 9 10 <br /> У????????ai 1 0 X 9 8 7 6 5 4 3 2 <br /> ??????????????????2??У???????????????????????????? 34052419800101001X?? <br /> <br /> C#????</p> <p><br /> &nbsp;&nbsp;private string per15To18(string perIDSrc) <br /> &nbsp;&nbsp;{ <br /> &nbsp;&nbsp;&nbsp;int iS = 0; <br /> &nbsp;<br /> &nbsp;&nbsp;&nbsp;//?????????? <br /> &nbsp;&nbsp;&nbsp;int[] iW=new int[]{7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};<br /> &nbsp;&nbsp;&nbsp;//У?????? <br /> &nbsp;&nbsp;&nbsp;string LastCode=&quot;10X98765432&quot;; <br /> &nbsp;&nbsp;&nbsp;//???????? <br /> &nbsp;&nbsp;&nbsp;string perIDNew; <br /> &nbsp;<br /> &nbsp;&nbsp;&nbsp;perIDNew=perIDSrc.Substring(0,6);<br /> &nbsp;&nbsp;&nbsp;//?????6λ????7λ??????&lsquo;1&rsquo;??&lsquo;9&rsquo;???????? <br /> &nbsp;&nbsp;&nbsp;perIDNew += &quot;19&quot;; <br /> &nbsp;<br /> &nbsp;&nbsp;&nbsp;perIDNew += perIDSrc.Substring(6,9); <br /> &nbsp;<br /> &nbsp;&nbsp;&nbsp;//???м????? <br /> &nbsp;&nbsp;&nbsp;for( int i=0; i&lt;17; i++) <br /> &nbsp;&nbsp;&nbsp;{ <br /> &nbsp;&nbsp;&nbsp;&nbsp;iS += int.Parse(perIDNew.Substring(i,1)) * iW[i]; <br /> &nbsp;&nbsp;&nbsp;} <br /> &nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;//??????????? <br /> &nbsp;&nbsp;&nbsp;int iY = iS%11; <br /> &nbsp;&nbsp;&nbsp;//??LastCode????????????????????????????????λ?????????????? <br /> &nbsp;&nbsp;&nbsp;perIDNew += LastCode.Substring(iY,1);</p> <p>&nbsp;&nbsp;&nbsp;return perIDNew;<br /> &nbsp;&nbsp;}</p> [PHP???]php????????,PHP???????????? http://www.haxv.top//tech/3397.html downcc.com PHP??? 2011/12/9 11:53:38 <p>???? php????????,PHP?????????????? <br /> <br /> ??? ????php??????????????????????????????????????????????????????????????????????PHP???????????????????????????PHP??????????????? <br /> <br /> ?????php????????????????? <br /> <br /> 1.PHP?????????????????????????????????????????????????????????Dreamweaver??Zend Studio ??eclipse??emeditor??????????????????????????α?PHP????????????????PHP????????????????WEB????????? <br /> <br /> 2.PHP?????????????????PHP???????????????PHP?????????????IIS??PHP+mysql???????????PHP?????????????????PHP????????磺xampp??APMServ??????????????</p> [PHP???]PHP?????????????????? http://www.haxv.top//tech/3349.html downcc.com PHP??? 2011/11/14 11:55:43 <p>??????????С????????????????????????????????????????????????????,??????????????????????????????????</p> <p>???????????????о????????????????????????????????????????????? ?????<br /> ???????JS<br /> function CheckAll(value,obj) {<br /> var form=document.getElementsByTagName(&ldquo;form&rdquo;)<br /> for(var i=0;i<br /> for (var j=0;j if(form[i].elements[j].type==&quot;checkbox&quot;){<br /> var e = form[i].elements[j];<br /> if (value==&quot;selectAll&quot;){e.checked=obj.checked}<br /> else{e.checked=!e.checked;}<br /> }<br /> }<br /> }<br /> }<br /> <strong>??<br /> </strong>????????????????onclick????? <br /> ????????????????????п????????????????????????????????????????<br /> &nbsp;<br /> ??????????????<br /> $ID_Dele= implode(&ldquo;&lsquo;,&rsquo;&rdquo;,$_POST['ID_Dele']);<br /> $q = &ldquo;delete from zhidaosoft_message where id in (&lsquo;&rdquo;.$ID_Dele.&rdquo;&lsquo;) and username=&rsquo;&rdquo;.htmlspecialchars($_COOKIE[&quot;username&quot;]).&rdquo;&lsquo;&rdquo;;</p> [PHP???]php?????????? ?????????????php??? http://www.haxv.top//tech/3233.html downcc.com PHP??? 2011/10/17 20:27:44 <p>php???????????????????????????????????????????????????????&ldquo;php??????????&rdquo;???????????????????php?????????????????????????????????????????????????????????е??????????????php?????????????е??????Щ????????????????????????????????????????????????????????Ч?????????????????????Ч??????????????????????php???????????????????????????????????????????ü??±??????????????php?????????????????????????????????????ɡ?</p> <p>???????????????php?????PHP????????????HTML-???????????????? ????????????????????????????????????????????????????????????????????????HTML????У? PHP???????????????Perl????c????????????????PHP???????????? ?????????????????????????HTML??????????????PHP?????????????е?? ????????????PHP?????? PHP????????κ?CGI???????????????????????????????????????????????????? PHP??????????HTTP????????????????IMAP, SNMP, NNTP, POP3Э?顣</p> <p>?????????г?<a href="http://www.haxv.top/">????????</a>?????е????php?????????????</p> <div style="text-align: center"><img border="0" alt="php??????????" width="547" height="443" style="cursor: pointer" src="/upload/tech/UploadPic/2011-10/20111017202950754.jpg" /><br /> php??????????<br /> &nbsp;</div> <div style="text-align: left">php?????????????????????????????????.php?????????????????? ????????????Dreamweaver ?????????????????????????????????б?????????????????????????????ü??±??????????????????php??????????---??????---???????----?????±???????????????</div> <div style="text-align: center"><img border="0" alt="php???????? -???±???" width="387" height="468" style="cursor: pointer" src="/upload/tech/UploadPic/2011-10/20111017202950957.jpg" /></div> <p>???????Ч????????????е????????????????????????????????????????????????廹????????????????????????????asp??php?????????????????????????????????????????????rar???????????????????????????????????????????????????????????????????????????????????????????????Ч????????????php???????????????????????ü??±??????php????????</p> [.Net???]ASP.NET AJAX???ü??? http://www.haxv.top//tech/2786.html downcc.com .Net??? 2011/5/30 9:42:27 <p>??????.net framework2.0??ASPAJAXExtSetup.msi <br /> ???? ???????? <br /> ??????????AJAX <br /> ??????VS??AjaxControlToolkit <br /> ??VS?????????????? .... <br /> <br /> .Net Framework 3.5 ??????????? v3.5 ????????β??? AJAX ?????? <br /> <br /> ?????????????????????????????????е????á???????????? ASP.NET AJAX Extensions ??????????? Ajax ?????????????? AJAX ???????????????????????? ASP.NET AJAX Control Toolkit?? <br /> <br /> ????????????????ASP.NET AJAX ?????????????? <br /> <br /> ????? ASP.NET AJAX ?????????? ASP.NET 2.0 AJAX Extensions 1.0 ????????????? ASP.NET AJAX Control Toolkit???????????????????????м???? <br /> <br /> ??? ASP.NET 2.0 AJAX Extensions 1.0?????? ASP.NET AJAX Control Toolkit??ASP.NET 2.0 AJAX Extensions 1.0 ???????????????????? ASP.NET AJAX Control Toolkit ??????μ???? AJAX Control Toolkit?? <br /> <br /> ????ASP.NET AJAX?? <br /> <br /> ??? <br /> ??????????л???????????????????????? ASP.NET AJAX Control Toolkit?? <br /> ??????????????????????? IIS?? <br /> <br /> 1&gt;???Ajax ASPAJAXExtSetup.msi ????http://ajax.asp.net????? <br /> <br /> 2&gt;???Ajax??? ASPAJAXSamples.msi <br /> <br /> 3&gt;???? ???°汾 ajaxcontroltoolkit <br /> http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AtlasControlToolkit <br /> <br /> 4&gt;?????C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AjaxControlToolkit <br /> <br /> 5&gt;?????????\AjaxControlToolkit\AjaxControlToolkit.sln,???????TemplateVSI <br /> <br /> 6&gt;????\AjaxControlToolkit\SampleWebSite\Bin\AjaxControlToolkit.dll??\AjaxControlToolkit\SampleWebSite\Bin\AjaxControlToolkit.dll <br /> ?? \AjaxControlToolkit\Binaries\ <br /> <br /> 7&gt;????\AjaxControlToolkit\TemplateVSI\bin\AjaxControlExtender.vsi ?????壨???C#??????Web <br /> <br /> 8&gt;????????????????AJAX Toolkit????AJAX Toolkit?????????????????????????????????.NET Framework <br /> ????? C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AjaxControlToolkit\Binaries\AjaxControlToolkit.dll <br /> <br /> 9&gt;???????Ч?? AjaxControlToolkit ???°汾 ajaxcontroltoolkit <br /> http://asp.net/ajax/ajaxcontroltoolkit/samples/ <br /> <br /> ????ASP.NET AJAX???</p> [.Net???]asp.net??????????? http://www.haxv.top//tech/2785.html downcc.com .Net??? 2011/5/30 9:38:14 <p style="text-indent: 2em"><strong>1.new?м????÷?</strong></p> <p style="text-indent: 2em">?????:new Class();</p> <p style="text-indent: 2em">?????:???????</p> <p style="text-indent: 2em">public new XXXX(){}</p> <p style="text-indent: 2em">??????:new ?????????????????е??κ???????????????й??????????????????</p> <p style="text-indent: 2em"><strong>2.???????array?????arrayList??</strong></p> <p style="text-indent: 2em">foreach( object o in array )arrayList.Add(o);</p> <p style="text-indent: 2em"><strong>3.datagrid.datasouse??????????????? [dataset,datatable,dataview]</strong></p> <p style="text-indent: 2em">dataset,datatable,dataview , IList</p> <p style="text-indent: 2em"><strong>4.????????????л?</strong></p> <p style="text-indent: 2em">????:??????????飬?????????????????????????????????????????????????????????????????÷???????????????????????????????ж?????????ж????л??????????????????????????????????κ?????</p> <p style="text-indent: 2em">???л?:???л???????????????????????????????磬???????л?????????????? HTTP ??? Internet ??????????????????????????????????л???????????1??????</p> <p style="text-indent: 2em"><strong>5.????o/r mapping ?????</strong></p> <p style="text-indent: 2em">???÷??????? ???????????????</p> <p style="text-indent: 2em"><strong>6.??????( )?????????</strong></p> <p style="text-indent: 2em">????????????????</p> <p style="text-indent: 2em">????????public ,protected ,private,internal</p> <p style="text-indent: 2em"><strong>7.??sealed???ε??????????</strong></p> <p style="text-indent: 2em">sealed ???η??????????????ε??????????????????????????????????????????????????????</p> <p style="text-indent: 2em">????????????????</p> <p style="text-indent: 2em">sealed ???η????????????????????????????????????Щ??????????????????????????????????????κ????????????????????????????????????????????????????????????</p> <p style="text-indent: 2em"><strong>8.?о?ADO.NET?е???????????????????</strong></p> <p style="text-indent: 2em">connection,command,dataReader,trans,dataset ...</p> <p style="text-indent: 2em"><strong>9.???????????</strong></p> <p style="text-indent: 2em">String strTemp =&quot;abcdefg ???&quot;??</p> <p style="text-indent: 2em">Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;</p> <p style="text-indent: 2em">Int j = strTemp.Length;</p> <p style="text-indent: 2em">???i=(14 ) ??j=(11 )</p> <p style="text-indent: 2em">i=(14 ) ??j=(11 ) ???????????</p> <p style="text-indent: 2em"><strong>10.C#?У?string str = null ?? string str =&quot;&quot;???????????????????(???????????????????)</strong></p> <p style="text-indent: 2em">string str =&quot;&quot; ??????</p> <p style="text-indent: 2em"><strong>11.????.NET??class??struct???????</strong></p> <p style="text-indent: 2em">class:???? ? struct?????</p> <p style="text-indent: 2em">struct?????</p> <p style="text-indent: 2em">??????к???????????????????????????????????????????????????????????????????治??????????????????????????????????????С???????洢??&ldquo;??????&rdquo;??&ldquo;????&rdquo;????????????????????????????y???????????</p> <p style="text-indent: 2em"><strong>12.????.NET??? remoting ?? webservice ????????????????е???á?</strong></p> <p style="text-indent: 2em">???????????remoing??????????.net??</p> <p style="text-indent: 2em"><strong>13.????code-behind????</strong></p> <p style="text-indent: 2em">aspx and cs</p> <p style="text-indent: 2em"><strong>14.????????????</strong></p> <p style="text-indent: 2em">web/business/dataaccess</p> <p style="text-indent: 2em"><strong>15.asp.net??????MVC?????????????</strong></p> <p style="text-indent: 2em">web/business/dataaccess</p> <p style="text-indent: 2em">----------------------------------------------------------------------------------------------------------</p> <p style="text-indent: 2em"><strong>1.??????????????????????</strong></p> <p style="text-indent: 2em">??:?????Χ???,????????.</p> <p style="text-indent: 2em"><strong>2.????ASP.net?е???????</strong></p> <p style="text-indent: 2em">??:??????????.ascx???????????,????????????????е???,????????.?????????????????????,???????????????,????????????????????????????????????o??????????????·?????ò???,???????д????????.</p> <p style="text-indent: 2em"><strong>3.??????ó???????????????????????????????????????????????????CTS??CLS??CLR??????ν????</strong></p> <p style="text-indent: 2em">??:???????????????????????,??MS IL??????????boxing,?????????????????????.??????,??????????????????,???????????,?????????????????.CLR??????????????,??????????.</p> <p style="text-indent: 2em"><strong>4.?о????????????XML???????????</strong></p> <p style="text-indent: 2em">??:XML????????,????????,???????????,WEB SERVICE???????.</p> <p style="text-indent: 2em"><strong>5.???????????????????д??C#??????????</strong></p> <p style="text-indent: 2em">??:?????????,????????????,??????????????????????,?????????????????????,????????д???.</p> <p style="text-indent: 2em"><strong>6.ADO.net?г???????????Щ?????????????</strong></p> <p style="text-indent: 2em">??:connection command sqladapter dataset datatable dataview???.д??????.</p> <p style="text-indent: 2em"><strong>7.????????У?</strong></p> <p style="text-indent: 2em">??:?????????????,????????о?????????????????????????μ??????????.</p> <p style="text-indent: 2em"><strong>msdn2005?????????????:</strong></p> <p style="text-indent: 2em"><strong>??о??????????</strong></p> <p style="text-indent: 2em"><strong>????????? C++ ??????????????????????</strong></p> <p style="text-indent: 2em"><strong>??????????????????????д????</strong></p> <p style="text-indent: 2em"><strong>??п????????????????</strong></p> <p style="text-indent: 2em"><strong>??п???????????????磬???????????????????????</strong></p> <p style="text-indent: 2em"><strong>????????????????????????й???????????μ?Э??????</strong></p> <p style="text-indent: 2em"><strong>C# 2.0 ?????????????????????????????????????????????????????浥????????????</strong></p> <p style="text-indent: 2em"><strong>8.C#?е???????????????</strong></p> <p style="text-indent: 2em">??:???????????,????????治????.</p> <p style="text-indent: 2em"><strong>9.??net?ж?д?????????????Щ???????????</strong></p> <p style="text-indent: 2em">??:????????????д???,??????????????configuration,sqlconnection,sqlcommand???????.</p> <p style="text-indent: 2em"><strong>10.UDP?????TCP??????????</strong></p> <p style="text-indent: 2em">??:???????,?????????????,??????????.?????????????????,???????.</p> <p style="text-indent: 2em"><strong>11.ASP.net???????????????Щ?????????????</strong></p> <p style="text-indent: 2em">??:form???,windows?????????,???????.</p> <p style="text-indent: 2em"><strong>12.</strong><strong>????</strong><strong>?????????????</strong></p> <p style="text-indent: 2em">??:??????????,????????,??????????ж???,???????????ж??????.????????????????????,??????????????????????????.</p> <p style="text-indent: 2em"><strong>13.????code-Behind??????</strong></p> <p style="text-indent: 2em">??:???????,?????????????,??ASP?????????????.???????????HTML????д????,C#????д????.???????н??,???????,???д????????????.</p> <p style="text-indent: 2em"><strong>14.?????????á?</strong></p> <p style="text-indent: 2em">??:?????????.?????????????.</p> <p style="text-indent: 2em"><strong>15..net?ж?дXML????????????Щ???????</strong></p> <p style="text-indent: 2em">??: [.Net???]?????HTTP/1.1 400 Bad Request?????????? http://www.haxv.top//tech/2784.html downcc.com .Net??? 2011/5/30 9:35:46 <p>??VS.net 2003???Web????????&ldquo;HTTP/1.1 400 Bad Request&rdquo;????????</p> <p>????????Windows Server 2003??????</p> <p>?????????VS.net 2003</p> <p>?????????VS.net 2003??????????е?Web??????????????????·???????????????&ldquo;ASP.NET Web??ó???&rdquo;????????&ldquo;??????? Web ??????λ?? URL&ldquo;http://localhost/WebApplication1&rdquo;?? Web ??????Web ???????????????′???&ldquo;HTTP/1.1 400 Bad Request&rdquo;??????????????????????????????????</p> <p>?????????Asp.net??iis????????????????????? aspnet_regiis -i</p> <p>???????????IIS??????????&ldquo;??????&rdquo;??&ldquo;????&rdquo;??&ldquo;???&rdquo;????&ldquo;ip???&rdquo;???&ldquo;?????δ????&rdquo;?????&ldquo;WEB???????&rdquo;????&ldquo;ASP.NET v1.1.4322 &rdquo;???&ldquo;????&rdquo;??</p> [.Net???]ASP.NET MVC??IIS6?2????? http://www.haxv.top//tech/2783.html downcc.com .Net??? 2011/5/30 9:10:47 <p>?????IIS6?2???ASP.NET MVC??ó?????????????????e?????????????ASP.NET??ISAPI?????MVC?????ASP.NET?????????????κ?????????????????·????????????????????????????????MVC??·?????????????·?ɡ?</p> <p>??????????????????????????????£????????t??????????ASP.NET??ISAPI?????????IIS???????????????????Щ?????????Χ??????????????????</p> <p>0.?????MVC??????????????????????????????£????????????Сд???</p> <p>1.??web??ó??????????·???£??????????????MVC2???????MVC3???Щ????????????????????????в???System.Web.Mvc??????MVC3??????????????????????Razor???棬???????????????????????????????MVC3??</p> <p>2.???????web??????</p> <p>3.?????????web????????????л???Home Directory?</p> <p align="center"><img height="400" alt="clip_image001" width="412" border="0" src="/upload/tech/UploadPic/2011-5/201153091536652.png" /></p> <p>4.???Configuration????Wildcard application maps?У????Insert?????C??\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll?????Verify that file existsg??????????????MVC2??????????2.0????????dll???????????????????????????????asp.net???????е?????</p> <p align="center"><img height="402" alt="clip_image001" width="416" border="0" src="/upload/tech/UploadPic/2011-5/201153091536968.jpg" /></p> <p>5.??OK</p> <p align="center"><img height="454" alt="clip_image001[6]" width="412" border="0" src="/upload/tech/UploadPic/2011-5/201153091537844.png" /></p> <p>6.????ASP.NET 4.0???</p> <p align="center"><img height="294" alt="" width="570" border="0" src="/upload/tech/UploadPic/2011-5/201153091537465.jpg" />&nbsp;</p> <p>7.content??????????????????????content?????????????IIS?????????????????content??????</p> <p align="center"><img height="377" alt="clip_image001[6]" width="405" border="0" src="/upload/tech/UploadPic/2011-5/201153091537803.jpg" /></p> <p>8.???create??????configuration?????Wildcard application maps?μ?????????OK????????????IIS?????bug?????????ó????????????Wildcard application maps????????????????????????????????IIS???????</p> <p align="center"><img height="443" alt="clip_image001[8]" width="403" border="0" src="/upload/tech/UploadPic/2011-5/201153091537304.png" /></p> <p>9. ????Remove???????????????????????????????????μ?????????IIS??&ldquo;???&rdquo;</p> <p align="center"><img height="385" alt="clip_image001[10]" width="411" border="0" src="/upload/tech/UploadPic/2011-5/201153091537205.png" /></p> <p>10.????AppPool??????????????AppPool????????л???Identity?????Local System??????????????÷???????????????ó???????????????????</p> <p align="center"><img height="376" alt="clip_image001[14]" width="399" border="0" src="/upload/tech/UploadPic/2011-5/201153091538234.png" /></p> <p>11.????????????????????????????????Add&hellip;???????????????????IUSR_XXX??XXX???????????</p> <p align="center"><img height="266" alt="clip_image001[16]" width="494" border="0" src="/upload/tech/UploadPic/2011-5/201153091538270.png" /></p> <p>???OK???????????Internet Guest Account??????????????????ɡ?</p> <p align="center"><img height="484" alt="clip_image001[18]" width="402" border="0" src="/upload/tech/UploadPic/2011-5/201153091538150.png" /></p> <p>12.????????????????.NET 4.0????????????</p> <p align="center"><img height="160" alt="" width="550" border="0" src="/upload/tech/UploadPic/2011-5/201153091538770.jpg" />&nbsp;</p> <p>?????????ASP.NET MVC??2???У??????MVC????·????????????&ldquo;???????????RouteCollection??RouteExistingFiles?true?????·?????侲?????????true?????????????????????&rdquo;?????????????????????????MVC????????????м?飬????????????????????????????????????????serve</p> <p align="center"><img height="183" alt="" width="225" border="0" src="/upload/tech/UploadPic/2011-5/201153091538813.jpg" />&nbsp;</p> [Asp???]ASP????ajax??????session???????? http://www.haxv.top//tech/2780.html downcc.com Asp??? 2011/5/28 21:09:18 <p>??????????????asp??????????????? <br /> <br /> ??????????????asp??????????д????????????????OK??? <br /> <br /> ???????????????????bug?? <br /> <br /> &nbsp; ???????????????????????ajax?????????????ж???session????????????????????????????????????????????????????????&nbsp;</p> <p>&nbsp; ???????????ff???????????????????????????????????????????IE??????????Ч???????????????????????????&nbsp;</p> <p>&nbsp; ??????????£?&nbsp;</p> <div > <div > <div >Java????</div> </div> <ol > <li><span><span ><font color="#008200">//????????????????session </font></span><span>&nbsp;&nbsp;</span></span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j.ajax({ &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:</span><span ><font color="#0000ff">&quot;GET&quot;</font></span><span>, &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:</span><span ><font color="#0000ff">&quot;sessioncheck.asp&quot;</font></span><span>, &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data:</span><span ><font color="#0000ff">&quot;&quot;</font></span><span>, &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timeout:&nbsp;</span><span ><font color="#c00000">1000</font></span><span>, &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error:&nbsp;function(){ &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(</span><span ><font color="#0000ff">'sorry,&nbsp;server&nbsp;is&nbsp;busy&nbsp;now!'</font></span><span>); &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;success:function(comments_data){ &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span ><strong><font color="#7f0055">if</font></strong></span><span>(comments_data&nbsp;==&nbsp;</span><span ><font color="#c00000">1</font></span><span>){ &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.createDialog(opts); &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j.startOver(); &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span ><strong><font color="#7f0055">else</font></strong></span><span>{ &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sql&nbsp;=&nbsp;selectSQL(searchkey,stype); &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.location.href&nbsp;=&nbsp;sql; &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</span></li> </ol> </div> <pre title="ASP????ajax??????session" pre_index="0" source_url="http://leobluewing.iteye.com/blog/337650" codeable_type="Post" codeable_ style="display: none"> //????????????????session j.ajax({ type:&quot;GET&quot;, url:&quot;sessioncheck.asp&quot;, data:&quot;&quot;, timeout: 1000, error: function(){ alert('sorry, server is busy now!'); }, success:function(comments_data){ if(comments_data == 1){ el.createDialog(opts); j.startOver(); } else{ var sql = selectSQL(searchkey,stype); window.location.href = sql; } } }); <br /><br />?????????? sessioncheck.asp?????????????session,???????£? </pre> <div > <div > <div >Java????</div> </div> <ol > <li><span><span ><strong><font color="#7f0055">if</font></strong></span><span>&nbsp;session(</span><span ><font color="#0000ff">&quot;username&quot;</font></span><span>)&nbsp;=&nbsp;</span><span ><font color="#0000ff">&quot;&quot;</font></span><span>&nbsp;then &nbsp;&nbsp;</span></span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(</span><span ><font color="#0000ff">&quot;1&quot;</font></span><span>) &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span ><strong><font color="#7f0055">else</font></strong></span><span>&nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(</span><span ><font color="#0000ff">&quot;2&quot;</font></span><span>) &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;</span><span ><strong><font color="#7f0055">if</font></strong></span><span>&nbsp;&nbsp;</span></li> </ol> </div> <pre title="ASP????ajax??????session" pre_index="1" source_url="http://leobluewing.iteye.com/blog/337650" codeable_type="Post" codeable_ style="display: none"> if session(&quot;username&quot;) = &quot;&quot; then Response.Write(&quot;1&quot;) else Response.Write(&quot;2&quot;) end if </pre> <p>?????????IE???session(&quot;username&quot;)??????У?timeout?????????á? <br /> <br /> ??????????????????????????????鵽??????????? <br /> <br /> ??get?????????url?????????????????е???????????????????ò???session?????? <br /> <br /> ??????????????google &quot;asp ???????&quot; ?????</p> <p>???????sessioncheck.asp?????????Σ????£?</p> <div > <div > <div >Java????</div> </div> <ol > <li><span><span>Response.Buffer&nbsp;=True &nbsp;&nbsp;</span></span></li> <li><span>&nbsp;&nbsp;Response.ExpiresAbsolute&nbsp;=Now()&nbsp;-&nbsp;</span><span ><font color="#c00000">1</font></span><span>&nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;Response.Expires=</span><span ><font color="#c00000">0</font></span><span>&nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;Response.CacheControl=</span><span ><font color="#0000ff">&quot;no-cache&quot;</font></span><span>&nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span ><strong><font color="#7f0055">if</font></strong></span><span>&nbsp;session(</span><span ><font color="#0000ff">&quot;username&quot;</font></span><span>)&nbsp;=&nbsp;</span><span ><font color="#0000ff">&quot;&quot;</font></span><span>&nbsp;then &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(</span><span ><font color="#0000ff">&quot;1&quot;</font></span><span>) &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span ><strong><font color="#7f0055">else</font></strong></span><span>&nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(</span><span ><font color="#0000ff">&quot;2&quot;</font></span><span>) &nbsp;&nbsp;</span></li> <li><span>&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;</span><span ><strong><font color="#7f0055">if</font></strong></span><span>&nbsp;&nbsp;</span></li> </ol> </div> <pre title="ASP????ajax??????session" pre_index="2" source_url="http://leobluewing.iteye.com/blog/337650" codeable_type="Post" codeable_ style="display: none"> Response.Buffer =True Response.ExpiresAbsolute =Now() - 1 [Asp???]asp?????????????/???????????????????????????? http://www.haxv.top//tech/2779.html downcc.com Asp??? 2011/5/28 21:03:55 <p><span ><font color="#000000">&lt;% <br /> '//hittime ????????????η?????? <br /> '//hits ????????????????? <br /> '//hitsday ?????????y???????? <br /> '//hitsweeks ?????????????????? <br /> '//hitmonths ?????????????????? <br /> '??????? ?????5????Ρ? <br /> set rs1=server.CreateObject(&quot;adodb.recordset&quot;) <br /> rs1.open &quot;select * from qwbmnewssss where id=26&quot;,conn,1,3 <br /> if rs1.eof and rs1.bof then <br /> response.write &quot;erry&quot; <br /> else <br /> hittime = rs1(&quot;hittime&quot;) '?????η?????? <br /> dim dayNow,monthNow,weeknow <br /> dayNow = day(date()) '??????? <br /> monthNow = month(date()) '??????? <br /> weekNow = weekday(date()) '????????? 0??????? <br /> rs1(&quot;hits&quot;) = rs1(&quot;hits&quot;) + 1 '????????? + 1 <br /> <br /> if datediff(&quot;d&quot;,hittime,now()) = 0 then '??????????????????????? ???? <br /> rs1(&quot;hitsday&quot;) = rs1(&quot;hitsday&quot;) + 1 '?????????? + 1 <br /> else <br /> rs1(&quot;hitsday&quot;) = 1 '?????????? = 1 <br /> end if <br /> <br /> if monthNow = month(hittime) then <br /> rs1(&quot;hitmonths&quot;) = rs1(&quot;hitmonths&quot;) + 1 '???μ?????? + 1 <br /> else <br /> rs1(&quot;hitmonths&quot;) = 1 '???μ?????? + 1 <br /> end if <br /> <br /> if datediff(&quot;d&quot;,hittime,now()) &gt; 6 then '???????????????????????????????????????????壬????η??????????????????????????????? <br /> rs1(&quot;hitsweeks&quot;) = 1 <br /> else <br /> if weekNow &lt;&gt; 1 then <br /> rs1(&quot;hitsweeks&quot;) = rs1(&quot;hitsweeks&quot;) + 1 <br /> else <br /> weekNowss = weekday(hittime) '??η????????? <br /> if weekNow = weekNowss then <br /> rs1(&quot;hitsweeks&quot;) = rs1(&quot;hitsweeks&quot;) + 1 <br /> else <br /> rs1(&quot;hitsweeks&quot;) = 1 <br /> end if <br /> end if <br /> end if <br /> <br /> rs1(&quot;hittime&quot;) = now() '??????????????? <br /> rs1.update <br /> %&gt; <br /> ??????&lt;%=datediff(&quot;d&quot;,hittime,now())%&gt;&lt;br /&gt; <br /> ??????&lt;%=now()%&gt;&lt;br /&gt; <br /> ????????&lt;%=hittime%&gt;&lt;br /&gt; <br /> ?????&lt;%=dayNow%&gt;&lt;br /&gt; <br /> ????£?&lt;%=monthNow%&gt;&lt;br /&gt; <br /> ??????&lt;%=weekNow%&gt;&lt;br /&gt; <br /> <br /> ??????????&lt;%=rs1(&quot;hits&quot;)%&gt;&lt;br /&gt; <br /> ???????????&lt;%=rs1(&quot;hitsday&quot;)%&gt;&lt;br /&gt; <br /> ???????????&lt;%=rs1(&quot;hitsweeks&quot;)%&gt;&lt;br /&gt; <br /> ???·???????&lt;%=rs1(&quot;hitmonths&quot;)%&gt;&lt;br /&gt; <br /> &lt;% <br /> end if <br /> rs1.close <br /> set rs1=nothing <br /> %&gt; </font></span></p> [Asp???]asp?н????·??????????·??????? http://www.haxv.top//tech/2778.html downcc.com Asp??? 2011/5/28 21:01:20 <p><span ><font color="#000000">'================================================ <br /> ' ????????ChkMapPath <br /> ' ?? ??????·??????????·?? <br /> ' ?? ????strPath ----?·?? <br /> ' ???????????·?? <br /> '================================================ <br /> Function ChkMapPath(ByVal strPath) <br /> Dim fullPath <br /> strPath = Replace(Replace(Trim(strPath), &quot;/&quot;, &quot;\&quot;), &quot;\\&quot;, &quot;\&quot;) <br /> <br /> If strPath = &quot;&quot; Then strPath = &quot;.&quot; <br /> If InStr(strPath,&quot;:\&quot;) = 0 Then <br /> fullPath = Server.MapPath(strPath) <br /> Else <br /> strPath = Replace(strPath,&quot;..\&quot;,&quot;&quot;) <br /> fullPath = Trim(strPath) <br /> If Right(fullPath, 1) = &quot;\&quot; Then <br /> fullPath = Left(fullPath, Len(fullPath) - 1) <br /> End If <br /> End If <br /> ChkMapPath = fullPath <br /> End Function</font></span></p> [Asp???]???????????????: &#39;Response.CharSet&#39; http://www.haxv.top//tech/2406.html downcc.com Asp??? 2011/4/8 14:49:03 <p>???????????????: 'Response.CharSet'??????????????web???????????????IIS?????У????ο??????????????IIS??????????????????????????????????web?????°???????????????????NetBox??&nbsp;</p> <p>?????????????IIS????е?????????NetBox???У??????????????????????????????????????????μ???????????ajax??????????1????NetBox?????г????&nbsp; <br /> ?????????&nbsp; <br /> ????????? '800a01b6'&nbsp;&nbsp; <br /> ???????????????: 'Response.CharSet'&nbsp;&nbsp; <br /> ---------------------------------------------------------------------&nbsp; <br /> (?????£????к????????????????)&nbsp; <br /> Microsoft VBScript runtime error '800a01b6'&nbsp;&nbsp;&nbsp; <br /> Object doesn't support this property or method: 'Response.Charset'&nbsp;&nbsp;&nbsp;</p> <p>?????????&nbsp; <br /> Response.CharSet&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; &quot;GB2312&quot;&nbsp;&nbsp;</p> <p>???д?????????????ajax??get???????????????????????&nbsp; <br /> ??????д????netbox???????У?????ajax???????????????????? <br /> ??? NetBox????? Response.CharSet ??</p> <p>??netbox????????????????? <br /> ????ο? &rarr; Response ???? &rarr; Response ???? <br /> AddHeader ????&nbsp; <br /> AddHeader ??????????????? HTML ?????÷????????????????μ? HTTP ????&nbsp; <br /> ??&nbsp; <br /> Response.AddHeader name, value&nbsp; <br /> ????&nbsp; <br /> name&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp; ?μ?????????????&nbsp; <br /> value&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp; ?洢???μ????????е????&nbsp;&nbsp; <br /> ???&nbsp; <br /> ????????????????name ?в???????κ????????? (_)??ServerVariables ??????????е????????????????б??????磬???????????????????????? MY-HEADER ?????????&nbsp;</p> <p>&nbsp; <br /> ???&nbsp; <br /> ????????????? AddHeader ?????????????? BASIC ?????&nbsp;</p> <p>&nbsp; <br /> ??? ????????????????????????????????????? Web ??ó????????y?????????????? Web ???????? BASIC ?????&nbsp;</p> <p>?????&nbsp; <br /> Response.CharSet&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp; &quot;GB2312&quot;&nbsp;&nbsp;&nbsp; <br /> ?滻??? <br /> Response.Addheader &quot;Content-Type&quot;,&quot;text/html; charset=gb2312&quot;</p> <p>NetBox??????ajax??get???????,?????????????????</p> [.Net???]IIS????Asp.net????? Asp.net??????????? http://www.haxv.top//tech/2398.html downcc.com .Net??? 2011/4/1 23:25:32 <p>????????????????IIS???????Щ???????????????????飿??????????????HTTP??????????????????????????????????????????IIS????asp.net?????asp.net????????????????????????????????????????????<br /> <br /> ?????????ū??????????????????<br /> <br /> 1?? worker process(w3wp.exe). worker process???????е???????????????????????????IIS??asp.net??ó????????<br /> <br /> 2?? application pool. ????worker process????????IIS5??????IIS?汾?????application pool????????application pool????????worker process????IIS Metabase???????Application Pool??worker process??Mapping??????????IIS5?г????worker process??IIS5????aspnet_wp.exe??????????????????y???)??????application?????????檔<br /> <br /> ???????IIS??????????????????????????飺<br /> <br /> 1?? server?????????<br /> <br /> IIS6??????????Kernel mode???е?HTTP.SYS?????????Request??application pool?? ?????????????????application pool??????????????????HTTP.SYS,??????????????HTTP.SYS??????????????application pool?? ????????IIS?????????User mode)?У?Web Admin Services (WAS) ?????HTTP.SYS?е??Request???????application pool???????application pool????request?????worker process??<br /> <br /> 2?? ???????worker process??worker process?????????ASP.NET ISAPI(Internet Server Application Program Interface)??ASP.NET ISAPI????????CLR?????й??????<br /> <br /> (???ISAPI???????????????????????????????????????Request URL?????????ú??????????<br /> <br /> ASP.NET ISAPI??????aspnet_isapi.dll?У???????????????????й??????С?ASP.NET ISAPI??????HttpRuntime, HttpRuntime????ProcessRequest?????????????????ProcessRequest????ISAPI????????iWRType ???????????HttpWorkerRequest?????????????IIS???????????ProcessRequest??????????HttpContext?????????HTTPContext.Current????????????HttpRuntime???HttpApplicationFactory??????HttpApplication????IHttpHandler????????е????????????httpmodule??????????Httphandler???д??????HttpApplicationFactory????HttpApplication?????????config??web.config??Machine.config??????????????е?HttpModule????????????????????????Assembly?????Reflection?????????HttpModule????????ЩModule???HttpApplication ??_moduleCollection Filed?С?????????Application????????????????HttpApplication?????????????????????ASP.NET????Httplication Pool?в???δ??????HttpApplication????<br /> <br /> 3?? ???????HTTP????????????????????????httphandler??IIS??????????????<br /> <br /> HttpHandler??HTTP??????????????request?????????System.Web.UI.Page????????????????Httphandler???????????????aspx??棬???HttpHandler??????html????????????Page????????<br /> <br /> public class Page : TemplateControl, IHttpHandler<br /> <br /> {<br /> <br /> }<br /> <br /> ?????????Page????????HttpHandler??<br /> <br /> ???????????????????????????????????????????????????????IIS??HTTP.SYS?????HTTP.SYS??????????????Application Pool?? ???Application Pool????????Worker Process??W3WP.exe???м???ISAPI Extension??ISAPI???????HttpRuntime?????????HttpModule??HttpHandler???????? ????????????????????<br /> <br /> 4?? ?????????????<br /> <br /> ???????????????????????<br /> <br /> ?????????Init??: ????????????????????????<br /> <br /> ????(load): ????????????????????????????<br /> <br /> ????:??PreRender) ?????????????£?????????<br /> <br /> ????(SaveViewState): ???????????????檔<br /> <br /> ??????(Render):??????????????html????<br /> <br /> ????(Dispose): ??????????????dispose, ??????????????????????????<br /> <br /> ж??(Unload)???????????????????<br /> <br /> ????????????????????<br /> <br /> PreInit:<br /> <br /> 1.???IsPostBack ????<br /> <br /> 2.???????Master Page<br /> <br /> 3.???????Theme<br /> <br /> 4.????????????(UniqueId???<br /> <br /> 5.???′??????????????????????????????????<br /> <br /> Init: ???????????????е???????????????е?????????????????????????????????????????????????????Щaspx??????????????????????<br /> <br /> InitComplete: Use this event for processing tasks that require all initialization to be complete.<br /> <br /> PreLoad: ????????ViewState?????е?????????????е??????Request????е?postback?????<br /> <br /> Load: ??????????????????????????????????Page?????????????????onload?????????????е?????????????ɡ????????????????????????????????????????????????????????<br /> <br /> Control events: ?????????????????????????????????click??????????????????????????click???Button???????????????????load??????????click???????????????!IsPostBack???ж???′????????в??????????????<br /> <br /> LoadComplete: ??????е????????????????У???????????????????????<br /> <br /> PreRender: ??HTML???????????????????????????????е???????PreRender????????????????????HTML?????????????????<br /> <br /> SaveStateComplete: ??????????????????????????п??????????κζ?page???????????????????????????????????????<br /> <br /> Render: ??????????????????????????????????HTMLд?????????????<br /> <br /> UnLoad: ????е?????????????????????????У??????????????????????????????????????????????汾????????????????????????????????????????????????????????????????????<br /> <br /> ??????????????Request???????????μ?Page??????????????????е???????????????????????request?д?????????????viewstate???洢??<br /> <br /> 5?? HttpHandler????????????????????????????????IIS,IIS????????????????????<br /> <br /> ????????????????????????????????HttpModule(??????EndRequest???????<br /> <br /> ?????????Request??????</p> [.Net???]ASP.NET????eurl.axd Http??????????? http://www.haxv.top//tech/2397.html downcc.com .Net??? 2011/4/1 23:24:17 <p>??IIS6??????????ASP.NET 2.0 ?? ASP.NET 4.0 ???????????????????′???&ldquo; System.Web.HttpException: Path &lsquo;//eurl.axd/&lsquo; was not found. &rdquo;<br /> <br /> ??????????????ASP.NET???Web???????????ASP.NET 4.0??????ASP.NET 4.0 ????????????????????? URL??ASP.NET???????????????????????????????????ASP.NET 4.0 ?????????????ASP.NET 2.0??????????????????? URL ???URL????????л?????????&ldquo;eurl.axd&rdquo;???????URL??????? ASP.NET 2.0??ó???<br /> <br /> ASP.NET 2.0??????????&ldquo;eurl.axd&rdquo;??????ASP.NET 2.0????????????????&ldquo;eurl.axd&rdquo;????????????????????????????????????????????Http????????????????&ldquo;eurl.axd&rdquo;?????<br /> <br /> <span style="font-weight: bold">?????????????????????????</span><br /> <br /> 1.?????????????ASP.NET 4&lrm;.0 ??????????????????????????ASP.NET 2.0??<br /> <br /> 2.?????????????ASP.NET 4&lrm;.0???????????????????????ASP.NET 2.0??????????????????????<br /> <br /> 3.???????????????????????????????????????????????????????<br /> <br /> ?????????&ldquo;HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\ASP.NET\\4.0.30319.0&rdquo;??????????&ldquo;EnableExtensionlessUrls&rdquo; ?????&ldquo;DWORD&rdquo;??????????????&ldquo;0&rdquo;???????cmd??????&ldquo;IISRESET&rdquo;??????IIS?????????????????????????????????ASP.NET 4&lrm;.0???????URL??????????????????&ldquo;1&rdquo;?????</p> [PHP???]??JavaScript??PHP???Android?豸???? http://www.haxv.top//tech/2282.html ??????? PHP??? 2011/3/14 19:14:11 <p>???????????飬iPad2???????????????????????????????????????г??Щ?????iOS?????????&mdash;&mdash;???(Android)??????????</p> <p><strong>JavaScript?ж????</strong></p> <p>????user agent??????е?Android???????????????????</p> <pre><ol ><li ><span><span ><strong><font color="#006699">if</font></strong></span><span>(navigator.userAgent.match(/Android/i))&nbsp;{ &nbsp;</span></span></li><li><span>&nbsp;&nbsp;&nbsp;</span><span ><font color="#008200">//&nbsp;Do&nbsp;something! </font></span><span>&nbsp;</span></li><li ><span>&nbsp;&nbsp;&nbsp;</span><span ><font color="#008200">//&nbsp;Redirect&nbsp;to&nbsp;Android-site? </font></span><span>&nbsp;</span></li><li><span>&nbsp;&nbsp;&nbsp;window.location&nbsp;=&nbsp;</span><span ><font color="#0000ff">'http://android.davidwalsh.name'</font></span><span>; &nbsp;</span></li><li ><span>&nbsp;}&nbsp;</span></li></ol></pre> <p><strong>PHP?ж????</strong></p> <p>??????????????PHP?????strstr????????user agent???????Android??</p> <pre><ol ><li ><span><span ><strong><font color="#006699">if</font></strong></span><span>(</span><span >strstr</span><span>(</span><span ><font color="#dd0000"><p>???????????飬iPad2???????????????????????????????????????г??Щ?????iOS?????????&mdash;&mdash;???(Android)??????????</p> <p><strong>JavaScript?ж????</strong></p> <p>????user agent??????е?Android???????????????????</p> <pre><ol ><li ><span><span ><strong><font color="#006699">if</font></strong></span><span>(navigator.userAgent.match(/Android/i))&nbsp;{ &nbsp;</span></span></li><li><span>&nbsp;&nbsp;&nbsp;</span><span ><font color="#008200">//&nbsp;Do&nbsp;something! </font></span><span>&nbsp;</span></li><li ><span>&nbsp;&nbsp;&nbsp;</span><span ><font color="#008200">//&nbsp;Redirect&nbsp;to&nbsp;Android-site? </font></span><span>&nbsp;</span></li><li><span>&nbsp;&nbsp;&nbsp;window.location&nbsp;=&nbsp;</span><span ><font color="#0000ff">'http://android.davidwalsh.name'</font></span><span>; &nbsp;</span></li><li ><span>&nbsp;}&nbsp;</span></li></ol></pre> <p><strong>PHP?ж????</strong></p> <p>??????????????PHP?????strstr????????user agent???????Android??</p> <pre> ___FCKpd___1</pre> <p>???????????.htaccess???ж?</p> <p>??????????.htaccess???ж?????????豸!</p> <pre><ol ><li ><span><span>RewriteCond&nbsp;%{HTTP_USER_AGENT}&nbsp;^.*Android.*$ &nbsp;</span></span></li><li><span>&nbsp;RewriteRule&nbsp;^(.*)___FCKpd___2nbsp;http://android.davidwalsh.name&nbsp;[</span><span ><font color="#ff0000">R</font></span><span>=</span><span ><font color="#0000ff">301</font></span><span>]&nbsp;</span></li></ol></pre> <p>???????????????????????豸????????<br /> <br /> ????????http://article.yeeyan.org/view/56089/176760</p> SERVER</font></span><span>[</span><span ><font color="#0000ff">'HTTP_USER_AGENT'</font></span><span>],</span><span ><font color="#0000ff">'Android'</font></span><span>))&nbsp;{ &nbsp;</span></span></li> <li><span>&nbsp;&nbsp;&nbsp;header(</span><span ><font color="#0000ff">'Location:&nbsp;http://android.davidwalsh.name'</font></span><span>); &nbsp;</span></li> <li ><span>&nbsp;&nbsp;&nbsp;</span><span >exit</span><span>(); &nbsp;</span></li> <li><span>&nbsp;}&nbsp;</span></li> </ol> </pre> <p>???????????.htaccess???ж?</p> <p>??????????.htaccess???ж?????????豸!</p> <pre> ___FCKpd___2</pre> <p>???????????????????????豸????????<br /> <br /> ????????http://article.yeeyan.org/view/56089/176760</p> [PHP???]php???????м????????????????? http://www.haxv.top//tech/2260.html ??????? PHP??? 2011/3/10 19:55:20 <p>function deldir($dir) {<br /> &nbsp; $dh=opendir($dir);<br /> &nbsp; while ($file=readdir($dh)) {<br /> &nbsp; &nbsp; if($file!=&quot;.&quot; &amp;&amp; $file!=&quot;..&quot;) {<br /> &nbsp; &nbsp; &nbsp; $fullpath=$dir.&quot;/&quot;.$file;<br /> &nbsp; &nbsp; &nbsp; if(!is_dir($fullpath)) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unlink($fullpath);<br /> &nbsp; &nbsp; &nbsp; } else {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deldir($fullpath);<br /> &nbsp; &nbsp; &nbsp; }<br /> &nbsp; &nbsp; }<br /> &nbsp; }<br /> <br /> &nbsp; closedir($dh);<br /> &nbsp; <br /> &nbsp; if(rmdir($dir)) {<br /> &nbsp; &nbsp; return true;<br /> &nbsp; } else {<br /> &nbsp; &nbsp; return false;<br /> &nbsp; }<br /> }</p> [PHP???]PHP?????泣???????????? http://www.haxv.top//tech/2259.html ??????? PHP??? 2011/3/10 19:52:51 <p>??дPHP?????????????????????????????????????????????????檔????????????дPHP?????????????????????????????????PHP???????????????????????д?????????????棬?????????дPHP??????????й?PHP????????????????????????????????дPHP???????????????????д???????????</p> <p><b>1??????δ????</b><br /> &nbsp;&nbsp;&nbsp; ??????????????????<br /> [code]<br /> &lt;?php<br /> $action = $_GET['id'];<br /> if($action == '')<br /> $action = 1;<br /> if($action == 1) {<br /> echo(&quot;\$action's value is 1&quot;);<br /> } else if($action == 2) {<br /> echo(&quot;\$action's value is 2&quot;);<br /> }<br /> ?&gt;<br /> [/code]<br /> &nbsp;&nbsp;&nbsp; ??δ???????ú?????????????$action???????????????1??????ж?$action????????????????????????????????$action???????1?????????2?????PHP???????????&mdash;&mdash;???????????????????????????檔???????????????????????????????????????????if????????else????????</p> <p><b>2????????</b><br /> &nbsp;&nbsp;&nbsp; ??????????????????????????????д??????????????????????????????Щ???????????Щ???????У??????й???????????????????д??PHP??????????????????κ?????????????????????????????????????????????????и?????</p> <p><b>3?????????</b><br /> &nbsp;&nbsp;&nbsp; ??????????????????????????????????????????????????????????????????????е??????????????????д????ò?????棬?????????????????????????????????????????????·????н????????????????????????????????????????????&ldquo;/* */&rdquo;???????Щ???????????????????????????????????????????е?????????????????????????</p> <p><b>4??????????????</b><br /> &nbsp;&nbsp;&nbsp; ?????????&ldquo;@&rdquo;??????????????????????????????????ù???????ò???????????????????ó??????????????????PHP??????<br /> test1.php</p> <p> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody> <tr> <td><b>????????????????:</b><br /> <br /> &lt;?php<br /> @include(&quot;test2.php&quot;);<br /> echo($var);<br /> ?&gt;<br /> &nbsp;</td> </tr> </tbody> </table> <br /> test2.php<br /> <table border="0" cellspacing="0" cellpadding="6" width="100%"> <tbody> <tr> <td><b>????????????????:</b><br /> <br /> &lt;?php<br /> $var = &quot;Hi&quot;&nbsp;&nbsp;&nbsp;&nbsp; //???д????д?????з??<br /> $var1 = &quot;Hello&quot;&nbsp;&nbsp;&nbsp;&nbsp; //???<br /> ?&gt;<br /> &nbsp;</td> </tr> </tbody> </table> <br /> &nbsp;&nbsp;&nbsp; ????test1?????????????????????檔?????????????????include??????????????????????test2.php????е????</p> <p>&nbsp;&nbsp;&nbsp; ??????????????????????????????????????????????????г???????????п??????????????????????????????????????????顣</p> [PHP???]header location????????????????????????? http://www.haxv.top//tech/2258.html ??????? PHP??? 2011/3/10 19:34:51 <p>????header?????&nbsp;&nbsp;<br /> &nbsp; &nbsp;??????<br /> <br /> http????<br /> &nbsp; &nbsp;?????????ú??????????????漸????<br /> 1?????<br /> &nbsp; &nbsp;?????????????????е? Location: xxxx ????????????? xxxx ????URL?????????е??????? js д????????????????????????????????????????????ж??????????????????<br /> &nbsp; &nbsp;????header(&quot;Location: <a href="http://www.haxv.top/">http://www.haxv.top/</a>&quot;);<br /> <br /> 2??????????????<br /> &nbsp; &nbsp;??????XML???????????????????Content-type: application/xml ????????????????XML?????????????????????????????Content-type: text/xml ??????????????俴??????????????????????????????????????????<br /> &nbsp; &nbsp;????header('Content-type: application/pdf');<br /> <br /> 3??????<br /> &nbsp; &nbsp;??????????????????Щ??????Щ?????????????????????????????????????????????????????????????????????????????????????й????????????????Content-type ???ж??????????棬???????????ж?????????????????????дContent-type????????????????????????????????????????????棬????????Content-Disposition: attachment; filename=&quot;xxxxx&quot;<br /> &nbsp; &nbsp;????header('Content-Disposition: attachment; filename=&quot;downloaded.pdf&quot;');<br /> &nbsp; &nbsp;&nbsp; &nbsp;//????????????<br /> &nbsp; &nbsp;&nbsp; &nbsp;readfile('original.pdf');<br /> <br /> HTTPЭ?????? <br /> 1&times;&times;????????&nbsp;&nbsp;<br /> 2&times;&times;??????????????????&nbsp;&nbsp;<br /> 3&times;&times;???????????????????????????&nbsp;&nbsp;<br /> 4&times;&times;???????????&nbsp;&nbsp;<br /> 5&times;&times;??????????????&nbsp;&nbsp;<br /> <br /> ????<br /> &nbsp; &nbsp;header(string,replace,http_response_code)<br /> ????<br /> &nbsp; &nbsp;string?????衣?漲???????????????<br /> &nbsp; &nbsp;replace?????????????????滻??????????????????????????? true???滻????false???????????????????????<br /> &nbsp; &nbsp;http_response_code????????? HTTP ?????????????????????PHP 4 ???????汾?????<br /> <br /> ??1??<br /> &nbsp; &nbsp;????????</p> <div> <div > <ol> <li>&nbsp; &nbsp;&lt;?php <br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp;header(&quot;Location: <a href="http://www.haxv.top/">http://www.haxv.top/</a>&quot;);<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp;exit;<br /> &nbsp;</li> <li>&nbsp; &nbsp;?&gt;</li> </ol> </div> </div> <p>??2??<br /> &nbsp; &nbsp;????????η?????????????????????????????????????????檔</p> <div> <div > <ol> <li>&nbsp; &nbsp;&lt;?php&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; //?????????????????????(??????????????)????????????????????ɡ?&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header(&quot;Expires:Mon,26 Jul 1970 05:00:00 GMT&quot;);&nbsp;&nbsp;<br /> &nbsp;</li> <li><br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; //?????????????????????????(??????????????)????????,?????????????????????????&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header(&quot;Last-Modified:&quot;.gmdate(&quot;D,d M Y H:i:s&quot;).&quot;GMT&quot;);&nbsp;&nbsp;<br /> &nbsp;</li> <li><br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; //?????????????????????&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header(&quot;Cache-Control:&nbsp; &nbsp; no-cache,&nbsp; &nbsp; must-revalidate&quot;);&nbsp;&nbsp;<br /> &nbsp;</li> <li><br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; //???????????????????????,??????HTTP1.0Э??&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header(&quot;Pragma:&nbsp; &nbsp; no-cache&quot;); <br /> &nbsp;</li> <li>&nbsp;&nbsp;?&gt;&nbsp;&nbsp;</li> </ol> </div> </div> <p>??3??<br /> &nbsp; &nbsp;???????????????????????????????</p> <div> <div > <ol> <li>&nbsp; &nbsp;&lt;?php&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header('HTTP/1.1 401 Unauthorized');&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header('status: 401 Unauthorized');&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;?&gt;&nbsp;&nbsp;</li> </ol> </div> </div> <p>??4??<br /> &nbsp; &nbsp;????????????????????????????????404?????????????????????????????????????</p> <div> <div > <ol> <li>&nbsp; &nbsp;&lt;?php&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header('HTTP/1.1&nbsp; &nbsp; 404&nbsp; &nbsp; Not Found');&nbsp;&nbsp;<br /> &nbsp;</li> <li>&nbsp; &nbsp;&nbsp; &nbsp; header(&quot;status:&nbsp; &nbsp; 404&nbsp; &nbsp; Not Found&quot;); //????д??????<br /> &nbsp;</li> <li>&nbsp; &nbsp;?&gt;</li> </ol> </div> </div> <p>??5??<br /> &nbsp; &nbsp;?????????λ??<br /> &nbsp; &nbsp;html??? &lt;A href='http://hostname/*.mp3'&gt;&lt;/a&gt;???????????????????????????????????????????????????????????header???????????????</p> <div ><blockquote>&nbsp;&nbsp;header(&quot;Content-type: audio/mpeg&quot;);<br /> &nbsp; &nbsp;header(&quot;Content-Disposition: attachment; filename=filenale&quot;);<br /> &nbsp; &nbsp;header(&quot;Content-Description: PHP3 Generated Data&quot;);</blockquote></div> <p>??6??<br /> &nbsp; &nbsp;header?????????????<br /> <br /> &nbsp; &nbsp; ????????header????????????html?????????????setcookie() ?? session ????????Щ????????????????????????????????????header()???????echo???????????????header()???????? &ldquo;Warning: Cannot modify header information - headers already sent by ....&rdquo;?????????????Щ????????治?????κ?????????С????????????????header()?????????exit()??????????????????д??????????php????????????????У?</p> <div> <div > <ol> <li>&lt;?php<br /> &nbsp;</li> <li>//some code here<br /> &nbsp;</li> <li>?&gt;<br /> &nbsp;</li> <li>//????????????????<br /> &nbsp;</li> <li>&lt;?php<br /> &nbsp;</li> <li>&nbsp; &nbsp; header(&quot;http/1.1 403 Forbidden&quot;);<br /> &nbsp;</li> <li>&nbsp; &nbsp; exit();<br /> &nbsp;</li> <li>?&gt;</li> </ol> </div> </div> <p><strong>???</strong><br /> &nbsp; &nbsp;PHP????????? ?,????????????http??????(????)????????????. http??????(???? header() ??SetCookie() ????)??????????????,??,???????浽????б???. ????????????????????????,???????????(????Content-Type ????.????,?????????????κη??????????????,??? HTML ?? print()????),???PHP???????????????е?Header,?????? HTTPheader.???????????????????.????????,?κ????????Header??????????????????,??????????????????????<br /> <br /> <strong>???????</strong><br /> ???php.ini??????(output_buffering),<font color="#ff0000">??output_buffering=0????output_buffering=4096</font><br /> ????????????????溯??ob_start()??ob_end_flush() ?????????output_buffering???????,??????????????PHP????????HTTPheader???????????????????????pipe??????????????????У??????PHP4.0????????????????????????????????????????/???header??????????cookie????? header????????з??????????????????PHP?????????HTTP header?????????????????????????е??????</p> [Asp???]asp ???????????????Ч????????? ????????????? http://www.haxv.top//tech/2253.html ??????? Asp??? 2011/3/10 18:58:18 <p>&lt;%<br /> '******************************<br /> '??????UrlOK(strURL)<br /> '??????strURL,??????????<br /> '?????????????<br /> '?????2007/7/13<br /> '?????????????????????Ч?????????<br /> '?????&lt;%=UrlOK(&quot;http://www.haxv.top&quot;)%&gt;<br /> '******************************<br /> Function UrlOK(strURL)<br /> On Error Resume Next<br /> If strURL&lt;&gt;&quot;&quot; Then<br /> Set objHTTP = CreateObject(&quot;MSXML2.XMLHTTP&quot;)<br /> objHTTP.Open &quot;GET&quot;, strURL, FALSE<br /> objHTTP.Send<br /> If instr(objHTTP.statusText,&quot;OK&quot;) Then<br /> UrlOK = &quot;??Ч&quot;<br /> Else<br /> UrlOK = &quot;??Ч&quot;<br /> End if<br /> Else<br /> UrlOK = &quot;????:????????????!&quot;<br /> End If<br /> End Function<br /> %&gt;</p> <p>&lt;%=UrlOK(&quot;http://www.haxv.top&quot;)%&gt;<br /> ?????????</p> <p><wbr></wbr></p> <p><br /> ?????????????????????URL<br /> &lt;%<br /> '******************************<br /> '??????checkexp(patrn,strng)<br /> '??????patrn ?????????strng ????????<br /> '?????????????<br /> '?????2007/7/13<br /> '???????????????????????????URL<br /> '?????&lt;%=checkexp(patrn,strng)%&gt;<br /> '******************************<br /> function checkexp(patrn,strng)<br /> dim regex,match<br /> set regex = new regexp ' ?????????????<br /> regex.pattern = patrn ' ????????<br /> regex.ignorecase = true ' ????????????????Сд??<br /> regex.global = true ' ?????????????<br /> matches = regex.test(strng)<br /> checkexp = matches<br /> end function</p> <p>%&gt;</p> [Asp???]FormatNumber???? http://www.haxv.top//tech/2252.html ??????? Asp??? 2011/3/10 18:49:17 <p>formatNumber(num,2,-1)<br /> 2;?????λС??<br /> -1:?????????С?????????0</p> <p>?????&nbsp;&nbsp;<br /> FormatCurrency&nbsp;&nbsp; ????&nbsp;&nbsp; |&nbsp;&nbsp; FormatDateTime&nbsp;&nbsp; ????&nbsp;&nbsp; |&nbsp;&nbsp; FormatPercent&nbsp;&nbsp; ????&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;<br /> ?汾2&nbsp;&nbsp;<br /> ????????????????????????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> FormatNumber(&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expression&nbsp;&nbsp; [,NumDigitsAfterDecimal&nbsp;&nbsp; [,IncludeLeadingDigit&nbsp;&nbsp; [,UseParensForNegativeNumbers&nbsp;&nbsp; [,GroupDigits]]]]&nbsp;&nbsp;<br /> )&nbsp;&nbsp;<br /> Arguments&nbsp;&nbsp;<br /> Expression&nbsp;&nbsp;&nbsp;&nbsp;<br /> ???????????????????&nbsp;&nbsp;&nbsp;&nbsp;<br /> NumDigitsAfterDecimal&nbsp;&nbsp;&nbsp;&nbsp;<br /> ??????С??????????λ??????????????&nbsp;&nbsp; -1???????????????????????á?&nbsp;&nbsp;&nbsp;&nbsp;<br /> IncludeLeadingDigit&nbsp;&nbsp;&nbsp;&nbsp;<br /> ?????????????????????С???С???????????й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> UseParensForNegativeNumbers&nbsp;&nbsp;&nbsp;&nbsp;<br /> ??????????????????????????????С??й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> GroupDigits&nbsp;&nbsp;&nbsp;&nbsp;<br /> ????????????????????ü????????????????????????????????????顣?й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> ????&nbsp;&nbsp;<br /> IncludeLeadingDigit??UseParensForNegativeNumbers&nbsp;&nbsp; ??&nbsp;&nbsp; GroupDigits&nbsp;&nbsp; ?????????????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ????&nbsp;&nbsp; ?&nbsp;&nbsp; ????&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateTrue&nbsp;&nbsp; -1&nbsp;&nbsp; True&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateFalse&nbsp;&nbsp; 0&nbsp;&nbsp; False&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateUseDefault&nbsp;&nbsp; -2&nbsp;&nbsp; ??ü?????????????е????á?&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;<br /> ????????????????????????????????????????????????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?????????????????????????&ldquo;????&rdquo;?????&nbsp;&nbsp;<br /> ????????????&nbsp;&nbsp; FormatNumber&nbsp;&nbsp; ???????????????????λС???????:&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> Function&nbsp;&nbsp; FormatNumberDemo&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim&nbsp;&nbsp; MyAngle,&nbsp;&nbsp; MySecant,&nbsp;&nbsp; MyNumber&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyAngle&nbsp;&nbsp; =&nbsp;&nbsp; 1.3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; ??????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MySecant&nbsp;&nbsp; =&nbsp;&nbsp; 1&nbsp;&nbsp; /&nbsp;&nbsp; Cos(MyAngle)&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; ???????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FormatNumberDemo&nbsp;&nbsp; =&nbsp;&nbsp; FormatNumber(MySecant,4)&nbsp;&nbsp; '&nbsp;&nbsp; ??&nbsp;&nbsp; MySecant&nbsp;&nbsp; ??????????λС?????????&nbsp;&nbsp;<br /> VBScript?????????????????????????ú???Formatnumber()??????????С?????????λ????????????????????????????????????????÷?????????????Щ????????????<br /> &lt;%=Formatnumber(6665.8999)%&gt;<br /> 6,665.90<br /> &lt;%=Formatnumber(&ldquo;6665.8999&rdquo;)%&gt;<br /> 6,665.90<br /> &lt;%=Formatnumber(6665.8999,3)%&gt;<br /> 6,665.900<br /> &lt;%=Formatnumber(-6665.8999,3,-1,-1,0)%&gt;<br /> (6665.900)<br /> ??????????????????????????????????????????????????????????????????????????????????????Formatnumber()????????????????????????????????????????<br /> ??????????????????Formatnumber()?????в?????<br /> ???????????-6665.8999???????????и???????????<br /> ???????????3???????С??????????λ????<br /> ????????????-1????????????????????<br /> ?????????(-1)??????????????????<br /> ??????????(0)???????????????<br /> ???<br /> ???VBScript????????????????????Formatnumber()??????????????????????????????????????????????????г????????????<br /> TristateTrue -1 True<br /> TristateFalse 0 False<br /> TristateUseDefault -2 ???????????<br /> ????????????Щ?????????????????????Windows????????е????????á?</p> <p>???????????????????????ú???Formatpercent()??<br /> &lt;%=Formatpercent(12)%&gt;<br /> 1,200.00%<br /> &lt;%=Formatpercent(&ldquo;12&rdquo;)%&gt;<br /> 1,200.00%<br /> ?????????????????????????100???????????????????????????Formatpercent()??????????????????????????????<br /> FormatPercent&nbsp;&nbsp; ????&nbsp;&nbsp;<br /> ?????&nbsp;&nbsp;<br /> FormatCurrency&nbsp;&nbsp; ????&nbsp;&nbsp; |&nbsp;&nbsp; FormatDateTime&nbsp;&nbsp; ????&nbsp;&nbsp; |&nbsp;&nbsp; FormatNumber&nbsp;&nbsp; ????&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;<br /> ?汾2&nbsp;&nbsp;<br /> ???????????????????????β????&nbsp;&nbsp; %&nbsp;&nbsp; ?????????????&nbsp;&nbsp; 100&nbsp;&nbsp; ????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> FormatPercent(expression[,NumDigitsAfterDecimal&nbsp;&nbsp; [,IncludeLeadingDigit&nbsp;&nbsp; [,UseParensForNegativeNumbers&nbsp;&nbsp; [,GroupDigits]]]])&nbsp;&nbsp;<br /> FormatPercent&nbsp;&nbsp; ?????????????2?????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ????&nbsp;&nbsp;<br /> Expression&nbsp;&nbsp;&nbsp;&nbsp;<br /> ???????????????????&nbsp;&nbsp;&nbsp;&nbsp;<br /> NumDigitsAfterDecimal&nbsp;&nbsp;&nbsp;&nbsp;<br /> ??????С??????????λ??????????????&nbsp;&nbsp; -1???????????????????????á?&nbsp;&nbsp;&nbsp;&nbsp;<br /> IncludeLeadingDigit&nbsp;&nbsp;&nbsp;&nbsp;<br /> ?????????????????????С???С???????????й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> UseParensForNegativeNumbers&nbsp;&nbsp;&nbsp;&nbsp;<br /> ??????????????????????????????С??й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> GroupDigits&nbsp;&nbsp;&nbsp;&nbsp;<br /> ????????????????????ü????????????????????????????????????顣?й???????????&ldquo;????&rdquo;?????&nbsp;&nbsp;&nbsp;&nbsp;<br /> ????&nbsp;&nbsp;<br /> IncludeLeadingDigit??UseParensForNegativeNumbers&nbsp;&nbsp; ??&nbsp;&nbsp; GroupDigits&nbsp;&nbsp; ?????????????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ????&nbsp;&nbsp; ?&nbsp;&nbsp; ????&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateTrue&nbsp;&nbsp; -1&nbsp;&nbsp; True&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateFalse&nbsp;&nbsp; 0&nbsp;&nbsp; False&nbsp;&nbsp;&nbsp;&nbsp;<br /> TristateUseDefault&nbsp;&nbsp; -2&nbsp;&nbsp; ??ü?????????????е????á?&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;<br /> ????????????????????????????????????????????????????&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> ???&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?????????????????????????&ldquo;????&rdquo;?????&nbsp;&nbsp;<br /> ????????????&nbsp;&nbsp; FormatPercent&nbsp;&nbsp; ????????????????????:&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> Dim&nbsp;&nbsp; MyPercent&nbsp;&nbsp;<br /> MyPercent&nbsp;&nbsp; =&nbsp;&nbsp; FormatPercent(2/32)&nbsp;&nbsp; 'MyPercent&nbsp;&nbsp; ????&nbsp;&nbsp; 6.25%??&nbsp;&nbsp;<br /> //////////////////////////////////&nbsp;&nbsp;<br /> ????******************************&nbsp;&nbsp;<br /> FormatDateTime(Date[,&nbsp;&nbsp; NamedFormat])&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;<br /> //////////////////////////////////&nbsp;&nbsp;<br /> NamedFormat????:******************************&nbsp;&nbsp;<br /> ????&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp [.Net???]Request.ServerVariables ??????? http://www.haxv.top//tech/2251.html ??????? .Net??? 2011/3/10 18:46:29 <p>Request.ServerVariables(&quot;Url&quot;)<br /> ????????????</p> <p>Request.ServerVariables(&quot;Path_Info&quot;)<br /> ?????????·?????</p> <p>Request.ServerVariables(&quot;Appl_Physical_Path&quot;)<br /> ????ó?????????·???????????·??</p> <p>Request.ServerVariables(&quot;Path_Translated&quot;)<br /> ????????????????????????·??<br /> Request.ServerVariables(&quot;Script_Name&quot;)<br /> ??н????????</p> <p>Request.ServerVariables(&quot;Query_String&quot;)<br /> ????????????</p> <p>Request.ServerVariables(&quot;Http_Referer&quot;)<br /> ??????????????</p> <p>Request.ServerVariables(&quot;Server_Port&quot;)<br /> ??????????????????</p> <p>Request.ServerVariables(&quot;Remote_Addr&quot;)<br /> ??????????????????IP???</p> <p>Request.ServerVariables(&quot;Remote_Host&quot;)<br /> ????????????????????</p> <p>Request.ServerVariables(&quot;Local_Addr&quot;)<br /> ????????????????????</p> <p>Request.ServerVariables(&quot;Http_Host&quot;)<br /> ????????????</p> <p>Request.ServerVariables(&quot;Server_Name&quot;)<br /> ????????????????DNS?????IP???</p> <p>Request.ServerVariables(&quot;Request_Method&quot;)<br /> ???????????????GET??HEAD??POST???</p> <p>Request.ServerVariables(&quot;Server_Port_Secure&quot;)<br /> ?????????????????????????????????1???????0</p> <p>Request.ServerVariables(&quot;Server_Protocol&quot;)<br /> ??????????Э????????汾</p> <p>Request.ServerVariables(&quot;Server_Software&quot;)<br /> ???????????????????????????????汾</p> <p>Request.ServerVariables(&quot;All_Http&quot;)<br /> ?????????????HTTP???????HTTP_</p> <p>Request.ServerVariables(&quot;All_Raw&quot;)<br /> ?????????????HTTP???,????????????????????????HTTP_</p> <p>Request.ServerVariables(&quot;Appl_MD_Path&quot;)<br /> ??ó??????????·??</p> <p>Request.ServerVariables(&quot;Content_Length&quot;)<br /> ????????????????</p> <p>Request.ServerVariables(&quot;Https&quot;)<br /> ?????????????????SSL????????ON???????????????????????OFF</p> <p>Request.ServerVariables(&quot;Instance_ID&quot;)<br /> IIS?????ID??</p> <p>Request.ServerVariables(&quot;Instance_Meta_Path&quot;)<br /> ????????IIS???????????·??</p> <p>Request.ServerVariables(&quot;Http_Accept_Encoding&quot;)<br /> ????????磺gzip,deflate</p> <p>Request.ServerVariables(&quot;Http_Accept_Language&quot;)<br /> ????????磺en-us</p> <p>Request.ServerVariables(&quot;Http_Connection&quot;)<br /> ????????Keep-Alive</p> <p>Request.ServerVariables(&quot;Http_Cookie&quot;)</p> <p>Request.ServerVariables(&quot;Http_User_Agent&quot;)<br /> ????????Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1)</p> <p>Request.ServerVariables(&quot;Https_Keysize&quot;)<br /> ??????????????????λ??????128</p> <p>Request.ServerVariables(&quot;Https_Secretkeysize&quot;)<br /> ?????????????????λ????1024</p> <p>Request.ServerVariables(&quot;Https_Server_Issuer&quot;)<br /> ??????????????????</p> <p>Request.ServerVariables(&quot;Https_Server_Subject&quot;)<br /> ?????????????????</p> <p>Request.ServerVariables(&quot;Auth_Password&quot;)<br /> ????????????????????????????????????????</p> <p>Request.ServerVariables(&quot;Auth_Type&quot;)<br /> ?????????????????????????????????????????????</p> <p>Request.ServerVariables(&quot;Auth_User&quot;)<br /> ??????????</p> <p>Request.ServerVariables(&quot;Cert_Cookie&quot;)<br /> Ψ????????ID??</p> <p>Request.ServerVariables(&quot;Cert_Flag&quot;)<br /> ????????I?????п??????飬??bit0?0????????????????Ч??bit1???????1</p> <p>Request.ServerVariables(&quot;Cert_Issuer&quot;)<br /> ???????е?????????</p> <p>Request.ServerVariables(&quot;Cert_Keysize&quot;)<br /> ??????????????????λ??????128</p> <p>Request.ServerVariables(&quot;Cert_Secretkeysize&quot;)<br /> ?????????????????λ????1024</p> <p>Request.ServerVariables(&quot;Cert_Serialnumber&quot;)<br /> ??????????к????</p> <p>Request.ServerVariables(&quot;Cert_Server_Issuer&quot;)<br /> ??????????????????</p> <p>Request.ServerVariables(&quot;Cert_Server_Subject&quot;)<br /> ?????????????????</p> <p>Request.ServerVariables(&quot;Cert_Subject&quot;)<br /> ????????????????</p> <p>Request.ServerVariables(&quot;Content_Type&quot;)<br /> ????????form?????HTTPPUT??????????</p> [Asp???]ASP??Cookies???????????? http://www.haxv.top//tech/2250.html ??????? Asp??? 2011/3/10 18:41:18 <p>1.???д??cookies??<br /> response.cookies(&quot;?????&quot;)=????????????????磺<br /> response.cookies(&quot;name2&quot;)=&quot;dingdang&quot;</p> <p>2.???????cookies???<br /> response.cookies(&quot;?????&quot;).expires=??亯??+n?????磺<br /> response.cookies(&quot;name2&quot;).expires=date+1?????cookies????1??????磺<br /> response.cookies(&quot;name2&quot;).expires=hour+8?????cookies????8С???</p> <p>3.????????asp????У??????н???cookies????????????&ldquo;???&rdquo;???asp??п???????д??<br /> response.cookies(&quot;?????&quot;)=&quot;&quot;<br /> ??????????????????????cookies??????cookies??????????????ж??????Σ????д????????????</p> <p>4.??ζ??cookies??<br /> ??????=request.cookies(&quot;?????&quot;)?????磺<br /> name2=request.cookies(&quot;name2&quot;)<br /> ????????д??&lt;%=name2%&gt;?????????&ldquo;dingdang&rdquo;??<br /> ??????????????cookies??&lt;%=request.cookies(&quot;name2&quot;)%&gt;</p> <p>cookies??????session????????????в????cookies??????????????????&ldquo;session&rdquo;?????÷?????????????????????????session???????cookies</p> [Asp???]asp??access????????excel????????? http://www.haxv.top//tech/1118.html ??????? Asp??? 2010/5/11 16:03:04 <p>??????????????????????????????????????????????????????????????????????????????????????????????????????????У?????????????????????????????????</p> <p>?????????????access?е?????????Excel??????????????????????????????????????????????????????????????д????????????????????????</p> <p>?????????</p> <p> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td bgcolor="#ddedfb">???????????????<br /> <p>&lt;!--#include file=&quot;../conn.asp&quot;--&gt;<br /> &lt;%<br /> if session(&quot;china_admin&quot;)=&quot;&quot; then response.redirect &quot;login.asp&quot;<br /> dbpath=&quot;../&quot;<br /> dblink<br /> dim filename,fs,myfile,x,m,n,o,link<br /> Set fs = server.CreateObject(&quot;scripting.filesystemobject&quot;)</p> <p>Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)<br /> session(&quot;sql&quot;) = &quot;select * from china_car&quot;<br /> rs.Open session(&quot;sql&quot;),conn,1,1<br /> n=1</p> <p>'==================================================================<br /> '==============================================================????excel?????<br /> filename = Server.MapPath(&quot;car/CarTable&quot;&amp;n&amp;&quot;.xls&quot;) '?????????????????CAR??????У???????????????<br /> if fs.FileExists(filename) then'???????????????????<br /> fs.DeleteFile(filename)<br /> end if<br /> set myfile = fs.CreateTextFile(filename,true)</p> <p>'========================================================================</p> <p>dim strLine,responsestr<br /> strLine=&quot;&quot;</p> <p>dim work,j,i<br /> str=&quot;???|????|????|??????|???&quot;????'??????????access???????????á?<br /> work=split(str,&quot;|&quot;)<br /> j=ubound(work)<br /> i=0<br /> o=0<br /> do while not i&gt;j<br /> strLine= strLine &amp; work(i) &amp; chr(9) <br /> i=i+1<br /> loop</p> <p>myfile.writeline strLine<br /> Do while Not rs.EOF<br /> o=o+1<br /> m=20000</p> <p><br /> strLine=&quot;&quot;</p> <p>for each x in rs.Fields<br /> strLine= strLine &amp; x.value &amp; chr(9)<br /> if o&gt;=m*n then<br /> n=n+1<br /> filename = Server.MapPath(&quot;car/CarTable&quot;&amp;n&amp;&quot;.xls&quot;) '??????????????<br /> if fs.FileExists(filename) then'???????????????????<br /> fs.DeleteFile(filename)<br /> end if<br /> set myfile = fs.CreateTextFile(filename,true)<br /> end if<br /> next</p> <p>myfile.writeline strLine</p> <p>rs.MoveNext<br /> loop</p> <p>rs.Close<br /> set rs = nothing<br /> conn.close<br /> set conn = nothing<br /> set myfile = nothing<br /> Set fs=Nothing<br /> ExcelPath=&quot;car/CarTable&quot;&amp;n&amp;&quot;.xls&quot;<br /> response.Write &quot;???????????&quot;<br /> response.write(&quot;&lt;a href='&quot; &amp; server.URLEncode(ExcelPath) &amp; &quot;'&gt;&lt;font=red&gt;????&lt;/font&gt;&lt;/a&gt;&quot;)</p> <p>%&gt;</p> </td> </tr> </tbody> </table> </p> [Xml???]ASP?в?????????д??XML?????? http://www.haxv.top//tech/872.html ??????? Xml??? 2010/2/16 19:13:02 <p>????????????Asp_XML.asp???м???:&nbsp;&nbsp;&nbsp; <br /> &lt;??&nbsp;&nbsp;&nbsp;&nbsp; <br /> Const&nbsp;IsSql&nbsp;=&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;??????????????SQL&nbsp;Server&nbsp;&nbsp;&nbsp; <br /> Call&nbsp;OpenConn(Conn)&nbsp;&rsquo;???????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> Dim&nbsp;Rs,Sql&nbsp;&nbsp;&nbsp; <br /> Set&nbsp;Rs&nbsp;=&nbsp;Server.CreateObject(&quot;ADODB.RecordSet&quot;)&nbsp;&nbsp;&nbsp; <br /> Sql&nbsp;=&nbsp;&quot;SELECT&nbsp;*&nbsp;FROM&nbsp;Products&nbsp;ORDER&nbsp;BY&nbsp;ProductName&quot;&nbsp;&nbsp;&nbsp; <br /> Rs.Open&nbsp;Sql,Conn,1,1&nbsp;&rsquo;?????????????????&nbsp;&nbsp;&nbsp; <br /> If&nbsp;Rs.Eof&nbsp;Then&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Response.Write&nbsp;&quot;Sorry,no&nbsp;record!&quot;&nbsp;&rsquo;?????м??&nbsp;&nbsp;&nbsp; <br /> Else&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;objXMLDOM,&nbsp;objRootNode,&nbsp;objNode&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objXMLDOM&nbsp;=&nbsp;Server.CreateObject(&quot;MSXML2.DOMDocument&quot;)&nbsp;&rsquo;????XML???????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRootNode&nbsp;=&nbsp;objXMLDOM.createElement(&quot;xml&quot;)&nbsp;&rsquo;?????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;objXMLDOM.documentElement&nbsp;=&nbsp;objRootNode&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;While&nbsp;Not&nbsp;Rs.Eof&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;????????м??&nbsp;&nbsp;&nbsp; <br /> &rsquo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write&nbsp;Rs(&quot;ProductName&quot;)&nbsp;&amp;&quot;&lt;br&gt;&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRowNode&nbsp;=&nbsp;objXMLDOM.createElement(&quot;row&quot;)&nbsp;&rsquo;?????????&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objNode&nbsp;=&nbsp;objXMLDOM.createElement(&quot;ProductName&quot;)&nbsp;&rsquo;????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objNode.text&nbsp;=&nbsp;Rs(&quot;ProductName&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objRowNode.appendChild(objNode)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objNode&nbsp;=&nbsp;objXMLDOM.createElement(&quot;UnitPrice&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objNode.text&nbsp;=&nbsp;Rs(&quot;UnitPrice&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objRowNode.appendChild(objNode)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objNode&nbsp;=&nbsp;objXMLDOM.createElement(&quot;UnitsInStock&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objNode.text&nbsp;=&nbsp;Rs(&quot;UnitsInStock&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objRowNode.appendChild(objNode)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objRootNode.appendChild(objRowNode)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Rs.MoveNext:Loop&nbsp;&rsquo;???????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;objXMLDOM.Save&nbsp;&quot;D:\MyXMLDoc.xml&quot;&nbsp;&rsquo;д??XML???&nbsp;???????????????????????????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Response.Write&nbsp;&quot;&lt;script&gt;alert(&rsquo;?????д??XML????????&rsquo;);&lt;/script&gt;&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objNode&nbsp;=&nbsp;Nothing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;???????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRowNode&nbsp;=&nbsp;Nothing&nbsp;&nbsp;&rsquo;???????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRootNode&nbsp;=&nbsp;Nothing&nbsp;&rsquo;???????&nbsp;&nbsp;&nbsp; <br /> End&nbsp;If&nbsp;&nbsp;&nbsp; <br /> Rs.Close&nbsp;&nbsp;&nbsp; <br /> Set&nbsp;Rs&nbsp;=&nbsp;Nothing&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> Call&nbsp;CloseConn()&nbsp;&rsquo;????????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> Function&nbsp;OpenConn(Conn)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;???????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;ConnStr&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;IsSql&nbsp;=&nbsp;1&nbsp;Then&nbsp;&rsquo;?????SQL&nbsp;Server?????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;SQL&nbsp;Server????????????:?????????????????????????????????????local???????IP??&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;SqlUsername,SqlPassword,SqlDatabaseName,SqlLocalName&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlUsername&nbsp;=&nbsp;&quot;sa&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlPassword&nbsp;=&nbsp;&quot;&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlDatabaseName&nbsp;=&nbsp;&quot;Northwind&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlLocalName&nbsp;=&nbsp;&quot;(local)&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ConnStr&nbsp;=&nbsp;&quot;Provider&nbsp;=&nbsp;Sqloledb;&nbsp;User&nbsp;ID&nbsp;=&nbsp;&quot;&nbsp;&amp;&nbsp;SqlUsername&nbsp;&amp;&nbsp;&quot;;&nbsp;Password&nbsp;=&nbsp;&quot;&nbsp;&amp;&nbsp;SqlPassword&nbsp;&amp;&nbsp;&quot;;&nbsp;<br /> Initial&nbsp;Catalog&nbsp;=&nbsp;&quot;&nbsp;&amp;&nbsp;SqlDatabaseName&nbsp;&amp;&nbsp;&quot;;&nbsp;Data&nbsp;Source&nbsp;=&nbsp;&quot;&nbsp;&amp;&nbsp;SqlLocalName&nbsp;&amp;&nbsp;&quot;;&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Else&nbsp;&nbsp;&rsquo;?????Access?????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;Db&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rsquo;??????????????????????????????????????????罫Dicky.mdb????Dicky.asp(???????????Access?????)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Db&nbsp;=&nbsp;&quot;Dicky.mdb&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ConnStr&nbsp;=&nbsp;&quot;Provider&nbsp;=&nbsp;Microsoft.Jet.OLEDB.4.0;Data&nbsp;Source&nbsp;=&nbsp;&quot;&nbsp;&amp;&nbsp;Server.MapPath(Db)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;On&nbsp;Error&nbsp;Resume&nbsp;Next&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Conn&nbsp;=&nbsp;Server.CreateObject(&quot;ADODB.Connection&quot;)&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Conn.Open&nbsp;ConnStr&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;Err&nbsp;Then&nbsp;&nbsp;&nbsp; <br /> &rsquo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Err.Clear&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Conn&nbsp;=&nbsp;Nothing&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write&nbsp;&quot;??????????????????????????&quot;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.End&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Rs&nbsp;=&nbsp;Server.CreateObject(&quot;Adodb.RecordSet&quot;)&nbsp;&nbsp;&nbsp; <br /> End&nbsp;Function&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> Function&nbsp;CloseConn()&nbsp;&nbsp;&rsquo;????????????&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Conn.Close&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Conn&nbsp;=&nbsp;Nothing&nbsp;& [Xml???]xmlhttp????????????????????????? http://www.haxv.top//tech/871.html ??????? Xml??? 2010/2/16 19:11:44 <p>getfile.asp<br /> &lt;??<br /> ''????xmlhttp???????????????浽??????<br /> ''????????????е???????,????????????????????????????????,??????????????????洢????????<br /> ''?ο???xoyu?????,????л<br /> fileurl=&quot;http://www.hbqx.gov.cn/other/tqyb/inc_city_hb.asp&quot;<br /> dotloc=InStrRev(fileurl,&quot;.&quot;)<br /> filepath=&quot;thistest&quot;&amp;mid(fileurl,dotloc) ''??????????????<br /> ''filepath=&quot;thistest.htm&quot;<br /> <br /> call saveRemoteFile(filepath,fileurl)<br /> <br /> sub SaveRemoteFile(LocalFileName,RemoteFileUrl)<br /> dim Ads,Retrieval,GetRemoteData<br /> Set Retrieval = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)<br /> With Retrieval<br /> .Open &quot;Get&quot;, RemoteFileUrl, False, &quot;&quot;, &quot;&quot;<br /> .Send<br /> GetRemoteData = .ResponseBody<br /> '' GetDetail = .ResponseText ''?????????????????????,?????????????,???????ν??<br /> End With<br /> <br /> Set Retrieval = Nothing<br /> ''RESPONSE.WRITE GetDetail<br /> <br /> Set Ads = Server.CreateObject(&quot;Adodb.Stream&quot;) ''?????????<br /> With Ads<br /> .Type = 1<br /> .Open<br /> .Write GetRemoteData<br /> .SaveToFile server.MapPath(LocalFileName),2<br /> .Cancel()<br /> .Close()<br /> End With<br /> Set Ads=nothing<br /> end sub<br /> <br /> ''??????????洢???,?????????????????????????<br /> set fso=server.createobject(&quot;scripting.filesystemobject&quot;) ''??????????<br /> set fileout=fso.opentextfile(server.mappath(filepath),1)<br /> content=fileout.readall<br /> set fileout=nothing<br /> set fso=nothing<br /> ''response.write content<br /> <br /> contentarr=split(content,&quot;&lt;td&quot;) ''?????????????<br /> for i=1 to ubound(contentarr)<br /> if instr(contentarr(i),&quot;???&quot;) then thisloc=i<br /> next<br /> dim xu(5)<br /> for j=0 to 4<br /> con1=contentarr(thisloc+j)<br /> start1=instr(con1,&quot;&gt;&quot;)<br /> con1=right(con1,len(con1)-start1)<br /> stop1=instr(con1,&quot;&lt;&quot;)<br /> con1=left(con1,stop1-1)<br /> str=str&amp;contentarr(thisloc+j)<br /> xu(j)=trim(con1)<br /> next<br /> if xu(1)&lt;&gt;&quot;&quot; then<br /> response.write &quot;document.write('?????δ??24С????????:&quot;&amp;xu(1)&amp;&quot;,??????&quot;&amp;xu(2)&amp;&quot;?????,??????&quot;&amp;xu(3)&amp;&quot;?????,????:&quot;&amp;xu(4)&amp;&quot;.--?人?????????????');&quot;<br /> else<br /> response.write &quot;document.write('??δ????');&quot;<br /> end if<br /> ''response.write server.htmlencode(str)<br /> ??&gt;<br /> <br /> ???????htm?????????????????<br /> &lt;script src=&quot;getfile.asp&quot;&gt;&lt;/script&gt;</p> [Xml???]????XMLHTTP ??????????????? http://www.haxv.top//tech/870.html ??????? Xml??? 2010/2/16 19:08:35 <p>???????дASP??????????????????????post????get???form??????????????????????????????????????????????????xmlhttpЭ?????xmlhttp??xmldom????????????<br /> <br /> ????????????????????????????????xmlhttp????????http://www.codetoad.com/?????????????xml?????????????????????????????<br /> <br /> &lt;??<br /> Dim objXMLHTTP, xml<br /> Set xml = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)<br /> <br /> xml.Open &quot;GET&quot;, &quot;http://www.codetoad.com/&quot;, False<br /> ' Pull the data from the web page<br /> xml.Send<br /> <br /> Response.write &quot;Here's the html we now have in our xml object&quot;<br /> Response.write &quot;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&quot;<br /> Response.Write &quot;&lt;xmp&gt;&quot;<br /> Response.Write xml.responseText<br /> Response.Write &quot;&lt;/xmp&gt;&quot;<br /> Response.write &quot;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&quot;<br /> Response.write &quot; Now here's how the page looks:&lt;BR&gt;&lt;BR&gt;&quot;<br /> Response.Write xml.responseText<br /> <br /> Set xml = Nothing<br /> ??&gt;<br /> <br /> <br /> ??????????????<br /> <br /> &lt;??<br /> dim objHTTP , objXML , objXSL<br /> set objHTTP = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)<br /> objHTTP.open &quot;GET&quot;, &quot;http://p.moreover.com/cgi-local/page?c=Pop??20music??20reviews&amp;o=xml&quot;, false<br /> objHTTP.send<br /> set objXML = objHTTP.responseXML<br /> set objXSL=Server.CreateObject(&quot;microsoft.xmldom&quot;)<br /> objXSL.async=false<br /> <br /> objXSL.load(Server.MapPath(&quot;style.xsl&quot;))<br /> <br /> if (objXSL.parseError.errorCode = 0) then<br /> Response.Write(objXML.transformnode(objXSL))<br /> else<br /> Response.Write &quot;Error: &quot; &amp; objXSL.parseError.reason &amp; &quot; URL:&quot; &amp; objXSL.url<br /> end if<br /> <br /> Set objHTTP = Nothing<br /> Set objXML = Nothing<br /> Set objXSL = Nothing<br /> ??&gt;<br /> <br /> style.xsl??<br /> &lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/TR/WD-xsl&quot;&gt;<br /> &lt;xsl:template match=&quot;/&quot;&gt;<br /> <br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &lt;TITLE&gt;moreover...&lt;/TITLE&gt;<br /> &lt;/head&gt;<br /> &lt;body BGCOLOR=&quot;ffffff&quot;&gt;<br /> <br /> <br /> &lt;DIV ALIGN=&quot;center&quot;&gt;<br /> &lt;TABLE BGCOLOR=&quot;ffffff&quot; BORDER=&quot;0&quot; CELLPADDING=&quot;4&quot; CELLSPACING=&quot;0&quot; WIDTH=&quot;100??&quot;&gt;<br /> <br /> &lt;xsl:for-each select=&quot;moreovernews/article&quot;&gt;<br /> <br /> &lt;TR VALIGN=&quot;middle&quot;&gt;<br /> &lt;TD ALIGN=&quot;left&quot; BGCOLOR=&quot;ffffff&quot;&gt;<br /> <br /> <br /> &lt;xsl:attribute name=&quot;HREF&quot;&gt;<br /> &lt;xsl:value-of select=&quot;url&quot;/&gt;<br /> &lt;/xsl:attribute&gt;<br /> &lt;xsl:attribute name=&quot;TARGET&quot;&gt;<br /> _blank<br /> &lt;/xsl:attribute&gt;<br /> <br /> &lt;xsl:value-of select=&quot;headline_text&quot;/&gt;<br /> <br /> <br /> &lt;xsl:attribute name=&quot;HREF&quot;&gt;<br /> &lt;xsl:value-of select=&quot;document_url&quot;/&gt;<br /> &lt;/xsl:attribute&gt;<br /> &lt;xsl:attribute name=&quot;TARGET&quot;&gt;<br /> _blank<br /> &lt;/xsl:attribute&gt;<br /> <br /> &lt;xsl:value-of select=&quot;source&quot;/&gt;<br /> <br /> <br /> <br /> &lt;xsl:attribute name=&quot;HREF&quot;&gt;<br /> &lt;xsl:value-of select=&quot;access_registration&quot;/&gt;<br /> &lt;/xsl:attribute&gt;<br /> &lt;xsl:attribute name=&quot;TARGET&quot;&gt;<br /> _blank<br /> &lt;/xsl:attribute&gt;<br /> <br /> &lt;xsl:value-of select=&quot;access_status&quot;/&gt;<br /> <br /> <br /> <br /> &lt;xsl:value-of select=&quot;harvest_time&quot;/&gt; GMT<br /> <br /> &lt;/TD&gt;<br /> &lt;/TR&gt;<br /> <br /> &lt;/xsl:for-each&gt;<br /> <br /> <br /> &lt;/TABLE&gt;<br /> &lt;/DIV&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> &lt;/xsl:template&gt;<br /> &lt;/xsl:stylesheet&gt;</p> [Xml???]XML??????? http://www.haxv.top//tech/869.html ??????? Xml??? 2010/2/16 19:05:37 <p>???HTML???????????????????XML???????????&quot;???????&quot;?? <br /> ???????HTML???Щ?????Щ?????HTML???洦???: <br /> 1.&lt;p&gt;sample <br /> 2.&lt;b&gt;&lt;i&gt;sample&lt;/b&gt;&lt;/i&gt; <br /> 3.&lt;td&gt;sample&lt;/TD&gt; <br /> 4.&lt;font&nbsp;color=red&gt;samplar&lt;/font&gt; <br /> ??XML????У???????????????????????????: <br /> 1.???е?????????????????????????? <br /> 2.???е?XML??????????????? <br /> 3.????XML?????????Сд?? <br /> 4.???б????????????&quot;&quot;???????? <br /> ?????????????XML???????д???? <br /> 1.&lt;p&gt;sample&lt;/p&gt; <br /> 2.&lt;b&gt;&lt;i&gt;sample&lt;/i&gt;&lt;/b&gt; <br /> 3.&lt;td&gt;sample&lt;/td&gt; <br /> 4.&lt;font&nbsp;color=&quot;red&quot;&gt;samplar&lt;/font&gt; <br /> ????????XML??????????????????????: <br /> 1.?????п??????????????????????????? <br /> 2.??????????????&quot;_&quot;&nbsp;(?????)&nbsp;????? <br /> 3.????????????&nbsp;xml&nbsp;(??&nbsp;XML&nbsp;??&nbsp;Xml&nbsp;..)&nbsp;????? <br /> 4.?????в????????? <br /> <br /> ??XML??????κε???????????????????????????????????????????????????Э?飬??XML??????????????????κ??С??????????檔???????????myfile.xml?????£????罫&lt;email&gt;???&lt;Email&gt;???????IE5????myfile.xml??????????????????棺 <br /> <br /> &lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;GB2312&quot;?&gt; <br /> &lt;myfile&gt; <br /> &lt;title&gt;XML?????????&lt;/title&gt; <br /> &lt;author&gt;ajie&lt;/author&gt; <br /> &lt;Email&gt;ajie@aolhoo.com&lt;/email&gt; <br /> &lt;date&gt;20010115&lt;/date&gt; <br /> &lt;/myfile&gt;&nbsp;</p> [Xml???]XML?????????????? http://www.haxv.top//tech/868.html ??????? Xml??? 2010/2/16 18:59:35 <p>???????????????&ldquo;???±?&rdquo;???????????XML????ɡ???????XML?????</p> <p>??????1</p> <p>???????xml version=&quot;1.0&quot; encoding=&quot;gb2312&quot; ??? <br /> ???????ο?????? <br /> ???? ???鼮?? <br /> ???? ???????XML???????/????? <br /> ???? ?????????????/????? <br /> ???? ????? ?????λ=&quot;?????&quot;??20.00??/??? <br /> ???? ??/?鼮?? <br /> ???? ???鼮?? <br /> ???? ???????XML????/????? <br /> ???? ??!--???鼴??????--?? <br /> ???? ????????????/????? <br /> ???? ????? ?????λ=&quot;?????&quot;??18.00??/??? <br /> ???? ??/?鼮?? <br /> ??????/?ο??????</p> <p>????????????????XML????????ú?????????.xml???????????????????????????????????Prolog?????????????????????????????е????м????????????????????XML????????????????????????????λ??XML????????У???????????XML????????ι????????У?version???????XML????????????汾?????????У?encoding??????XML???????????????????????????????????????????????????????????Unicode????????鯔???????????????????????????????GB2312?????????encoding????????????????????????????????Щ???????????????????????</p> <p>????????????????????????????壬XML????????????????????????????????????????????????ο??????????????/?ο??????????????????????XML?????&ldquo;?????&rdquo;?????鼮?????????????????μ?&ldquo;?????&rdquo;??????鼮???????С????????????????????????Щ???????????λ??????????е????&ldquo;????&rdquo;??&ldquo;?????&rdquo;????&ldquo;?????&rdquo;??</p> <p>??????!--???鼴??????--????????HTML?????????????XML????????????????&ldquo;??!--&rdquo;??&ldquo;--??&rdquo;???????????</p> <p>???????????????XML?????????????HTML?????XML???????????е?????????????XML????е?????????????????????????????壬???????????е????????????????????XML?????????????????????????????????XML????????????????????????????????????????????XML????????XML Parse????</p> <p>????1.XML??????</p> <p>????????????????????????XML???????н???????????XML????е????????????????????????????????ó??????XML????????????????????????????XML?淶?ж?????α??????????????????????????????????????Щ????д???????????????Javaд??????HTML?????????????У???????HTML???????????????????????&ldquo;????&rdquo;??????HTML??????????????????????????????????????????????HTML????????????????????????????????????</p> <p>?????????????HTML?????????????????????????淶??????е??????IE???????????????Netscape Navigator???У??????????????XML???????????漲??XML??????????????д??XML????????????Щ?漲??????XML????????????????????????????????</p> <p>??????????XML??????????Well-Formed XML??????????Validating XML?????</p> <p>??????????XML???????XML?淶?е??Щ??????????????DTD????????????&mdash;&mdash;??????????????????????Well-Formed??????????XML?????Well-Formed??????????????DTD??DTD?е??????????????????????????Validating?????????XML???????????XML?????????????Well-Formed ?????????????Validating????????IE 5?о????Validating????????Validating?????????????????Well-Formed XML?????</p> <p>??????????????????Well-Formed??????????????????????????XML ?????IE 5????汾???????????</p> <p>????????????????????????е?????????????????????????????XML????????????????? ????????????????????????CSS??XSL??????????????????и????XML???????????CSS??XSL??????????????????????????????????????????????????????????????XML??????????????????????????????????????????CSS??XSL?????????????????????????</p> <p>????2.Well-Formed??XML???</p> <p>???????????XML??????Well-Formed?????????????????????????????????????????С????????Well-Formed??XML??????????????漸??????????????XML?????????????????????</p> <p>???????XML????????б????????????????XML??????????????XML?淶?汾???????????治???????????????????</p> <p>?????????XML??????????????????????????????????????У????ο??????... ??/?ο???????????XML??????????</p> <p>??????????XML????е????????????????????????XML????У???????? ????????????????????磺??????????????ж?????/?????????????????HTML???Щ????????????п?????????XML?????????????????????????????????HTML ?е??img src=.....??????Щ??н??????????XML???????&ldquo;?????&rdquo;??????????????д?????????????/???????????к????????д???????????????? ??????=&ldquo;?????&rdquo;/????</p> <p>??????????????y??檔???????HTML????У?????????д??</p> <p>????B????H??XXXXXXX??/B????/H??,??B?????H??</p> <p>???????????????????????????XML?У???????????????????д????????????????????????????</p> <p>???????壬????????????&ldquo; &rdquo;?????????????????????е?&ldquo;1.0&rdquo;??&ldquo;gb2312&rdquo;??&ldquo;?????&rdquo;????????&ldquo; &rdquo;????????????????????</p> <p>???????????????????????????????????????Сд????HTML??????????HTML?У? ?????B?????b?????????????????????XML?У??????name??????NAME????Name?????????????????</p> <p>????????????????????HTML????У????????????????????????????????????????????????????Щ?????????pre????/pre???????xmp????/xmp??????м?????????????HTML??????????????????????????????HTML???????????XML?У???????????????????????CDATA??????CDATA????е????????????????????????ó???????????????????е??κο??????CDATA?????????&ldquo;??![CDATA[&rdquo;??????????&ldquo;&gt;??&rdquo;????????????磺??2?е????????&ldquo;??![CDATA[&rdquo;??&ldquo;&gt;??&rdquo;??????????????????????????????????ε???ó??????CDATA?????е??????β????????????????????????????????CDATA???д?????????</p> <p>??????2</p> <p>??????![CDATA[?????xml??????????,:-) <br /> ????oooo?????????????? <br /> ????&gt;??</p> <p>????????XML???????????HTML???????HTML????漲???????ж???????????????????????????????XML?й漲?????б??????????????????????????????ε???ó?????????????????????????????дHTML??????????????????????????????????????磺</p> <p>???? ?????????????/????? <br /> ?????? <br /> ???? ??????? <br /> ???? ???? <br /> ???? ??/?????</p> <p>????????????????????????????????????????????/?????????????????????????????????????????м?????&ldquo;????&rdquo;???????????????????????????????????????????ó????в???????????</p> <p>?????????????????????XML????????е????????????壬???????????????Щ??У????????????????壩??????????м??????XML?????????&mdash;&mdash;xml:space ???磨????????????????Сд???? ????</p> <p>????????? xml:space=&quot;preserver&quot;?? <br /> ???? ??????? ????? <br /> ???? ???????? <br /> ???? ??/??衵</p> <p>????????XML????У??????????1??????????????????????????檔</p> <p>????1</p> <p>??????????? ??????? <br /> ????&amp;&amp; &amp; <br /> ????&lt; &amp;it; <br /> ????&gt; &gt; <br /> ????&quot; &quot; <br /> ????' &amp;apos;</p> <p>???????????С???????????漲??XML???????Well-Formed??XML??????????дXML????????????????????XML????????漲??HTML???????????????????????漲????????????дXML??????????????????????дHTML?????????????????????????????????д???????????????????????????????????????????????????????????????????????????????????????????????HTML??д????</p> <p>???????????????XML????У????????????????????????????£????????????????A??B???XML??????????????A????á?????????????????????????????B????????á????????????????????????XML??ó????????????????XML????е??????????????????????????????????????????B [Xml???]??XML??XSL??????????? http://www.haxv.top//tech/867.html ??????? Xml??? 2010/2/16 18:57:00 <p>xml??????????????????????????????w3c???&mdash;&mdash;????????????????????????????ó???????????????????????????????????????á????????????xml?????????????????html?????в??????????????????????????????????b2b??????</p> <p>??sparks.com?????????xml?????????java????html?????????????????????????</p> <p>??????????????????????????????????xml??????????????????????????????????????????????У?????????????xml??????Ч??????????????????????????????????</p> <p>?????<br /> ?????xml?????????????????????????xml????????</p> <p>??????xml<br /> ?????????????html???????????????xml?????????????????????????????衣</p> <p>??xsl??????????<br /> xsl??????????????????????xml????????????÷????????д???????????????Ч??</p> <p>????html<br /> xml????xsl?????html??????????????????????????????????html??????????xml??xsl?????????Ч????</p> <p><br /> ????????</p> <p>xml?????????????????????????????????????????????????????????????????棬???????????????</p> <p>???κ?xml??????У?????????????????????????????????????????????????</p> <p>&bull; ??漰??Щ????<br /> &bull; ???????dtd???????????壩<br /> &bull; ???????dom???????????????sax??xml???api??????</p> <p>????????<br /> ?????б????xml?????????????????????????????????????????????????????ó???????????????????????????????????????????????????????????xml??????????????а???????????xml??????????????????????????????????????????y?????????????????????????????????????????????????????????xml???????????????????????????????????</p> <p>?????????xml?????????</p> <p>??sparks.com?????????????????????????в???????????????????е???涼???????????????????????????????????????????????????xml???????????磬????????????????????????????????????????????????????????????????????????????????????????xsl??嶼???????????????Ρ?</p> <p>??????dtd<br /> ??sparks.com?????????????????xml????????y??????????xml????????????dtd??dtd????????????????????????????????????????????????????????????????xml?????????????????????dtd?????????????dtd??????????????????????????</p> <p>??????????<br /> ?????????????????????кü???????????????????????????????????????????????dtd?????????????????????????xml??dtd??????????????????????????У?????????????????</p> <p>sax??dom???????????????????sax???????????????xml??????????????????????檔????????????????????????dom????????????xml?????xsl????????????????????????????dom??????????xml???????????xsl????????????????sax????????????????????dom??????潵????????xsl?????????????????檔</p> <p>???????????????sax??????????г?????????????????Щ????????????dom???????dom???????????????????????????κ?xml?????????????????н???dom????????????????</p> <p>??????????xml</p> <p>?????????xml?????????????????????????????ж????????????</p> <p>????xml????????????????????????????????????????????????????????????java servlet??enterprise javabean server??jdbc??rdbms?????????????????????????</p> <p>&bull; servlet?????????xml???????????enterprise javabean (ejb)???????????????<br /> &bull; ejb???jdbc??????????????????????????<br /> &bull; ejb????xml??????????????servlet??<br /> &bull; servlet???y??????棬??xml?????????xsl??????д???html?????</p> <p>???й?xsl????????????????????xsl?????????????</p> <p>????xml??????<br /> ??java?д???xml??????????????????????????????????</p> <p>???xml??????????????ejb?????????????????????????stringbuffer?????洢?????xml???????</p> <p>stringbuffer xml = new stringbuffer(); <br /> xml.append(xmlutils.begindocument(&quot;/browse_find/browse.xsl&quot;, &quot;browse&quot;, request)); <br /> xml.append(product.toxml()); <br /> xml.append(xmlutils.enddocument(&quot;browse&quot;);<br /> out.print(xml.tostring());</p> <p><br /> ?????????xml.append()???????????????????????á? <br /> ????????<br /> ????????????????xmlutils????????xml???????????java servlet?е???????£?</p> <p>public static string begindocument(string stylesheet, string page)<br /> { <br /> &nbsp;&nbsp;&nbsp; stringbuffer xml = new stringbuffer(); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;<!--l version=\"1.0\-->\n&quot;)<br /> &nbsp;&nbsp;&nbsp; .append(&quot;<!--l-stylesheet href=\"")<b-->&nbsp;&nbsp;&nbsp; .append(stylesheet).append(&quot;\&quot;&quot;) <br /> &nbsp;&nbsp;&nbsp; .append(&quot; type =\&quot;text/xsl\&quot;?&gt;\n&quot;); <br /> &nbsp; xml.append(&quot;&lt;&quot;).append(page).append(&quot;&gt;\n&quot;); <br /> &nbsp; return xml.tostring(); <br /> }</p> <p>??δ?????????xml???????????????????????1.0?汾??xml?????????д???????????????????????????λ?á?????????????????????????????<br /> ??????????β?????<br /> ????????????</p> <p>?????????<br /> ???????????????????????java??????????????xml???????е??????product????product?????????????????????????xml??????????????toxml()???????&lt;product&gt;??&lt;/product&gt;?????????product?????????????internalxml()???????????????xml??????????internalxml()?????е?stringbuffer.append()???á?stringbuffer?????????????????????????????</p> <p>public string toxml()<br /> &nbsp;&nbsp;&nbsp; { <br /> &nbsp;&nbsp;&nbsp; stringbuffer xml = new stringbuffer(&quot;&lt;product&gt;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(internalxml()); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;&lt;/product&gt;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; return xml.tostring(); <br /> &nbsp;&nbsp;&nbsp; }</p> <p>public string internalxml() <br /> &nbsp;&nbsp;&nbsp; { <br /> &nbsp;&nbsp;&nbsp; stringbuffer xml = new<br /> &nbsp;&nbsp;&nbsp; stringbuffer(&quot;\t&quot;)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .append(producttype).append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(idvalue.trim())<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(idname.trim())<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(page.trim())<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .append(&quot;\n&quot;); <br /> ???<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(amount).append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(vendor).append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(pubdesc).append(&quot;\n&quot;); <br /> &nbsp;&nbsp;&nbsp; xml.append(&quot;\t&quot;).append(vendesc).append(&quot;\n&quot;; <br /> ???<br /> &nbsp;&nbsp;&nbsp; return xml.tostring(); <br /> }</p> <p><br /> ??????<br /> ???xmlutils.enddocument()?????????á???????ù??xml??????????????????????????????xml?????????????????????stringbuffer???????????????????????????http?????servlet??</p> <p>??????xsl??????????</p> <p>?????html???????????????xml????????xml??????α????xsl?????????????xsl?????????????xsl??html?????ɡ?</p> <p>????????<br /> ?????xsl??忪?????????????δ????????????д???????????????????????xsl??????xmlns:xsl=??????????????????xml????????version=???????????????汾???????????β????????????</p> <p>??&lt;xsl:template&gt;????????д????????xsl????????match????????????????????xml???&lt;basketpage&gt;?????????????&lt;basketpage&gt;????????&lt;product&gt; ??????? [Xml???]XML Schema????? http://www.haxv.top//tech/866.html ??????? Xml??? 2010/2/16 18:51:12 <p>1????????????????????????????????????????????????п???????????????????????????Attribute??,??????????????????????????????κ?????? <br /> &lt;xsd:complexType&nbsp;name=&quot;CNAddress&quot;&nbsp;&gt; <br /> &lt;xsd:sequence&gt; <br /> &lt;xsd:element&nbsp;name=&quot;name&quot;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:element&nbsp;name=&quot;street&quot;&nbsp;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:element&nbsp;name=&quot;city&quot;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:element&nbsp;name=&quot;zip&quot;type=&quot;xsd:decimal&quot;/&gt; <br /> &lt;/xsd:sequence&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;country&quot;&nbsp;type=&quot;xsd:NMTOKEN&quot;&nbsp;fixed=&quot;US&quot;/&gt; <br /> &lt;/xsd:complexType&gt; <br /> <br /> 2??element?????????element?????????minOccurs??maxOccurs???????????????????????????????????????????????1????????????′??????XML???????б????????Ρ? <br /> <br /> 3??attribute????????????????????????attribute??use???????????????λ???????????use?????????????required,optional,prohibited??????????????????optional. <br /> <br /> 4??element??attribute???????default??fixed????????element???飬??е?element?????????????default?????attribute????????????attribute???????default???????attribute??????????use???optional?default????????壬?????element??attribute???fixed??default????????????????????????????? <br /> <br /> 5??????????schema????£???schema?????????????element??attribute????????????????????????????????????????????п?????????á? <br /> <br /> 6???????????????????????????????????????????????????У??????????????????????????????????????????????? <br /> ?磺????????????????????????????????? <br /> ??????Χ????? <br /> &lt;xsd:simpleType&nbsp;name=&quot;myInteger&quot;&gt; <br /> &lt;xsd:restriction&nbsp;base=&quot;xsd:integer&quot;&gt; <br /> &lt;xsd:minInclusive&nbsp;value=&quot;10000&quot;/&gt; <br /> &lt;xsd:maxInclusive&nbsp;value=&quot;99999&quot;/&gt; <br /> &lt;/xsd:restriction&gt; <br /> &lt;/xsd:simpleType&gt; <br /> ????????????? <br /> &lt;xsd:simpleType&nbsp;name=&quot;SKU&quot;&gt; <br /> &lt;xsd:restriction&nbsp;base=&quot;xsd:string&quot;&gt; <br /> &lt;xsd:pattern&nbsp;value=&quot;\d{3}-[A-Z]{2}&quot;/&gt; <br /> &lt;/xsd:restriction&gt; <br /> &lt;/xsd:simpleType&gt; <br /> ????????????? <br /> &lt;xsd:simpleType&nbsp;name=&quot;CNCity&quot;&gt; <br /> &lt;xsd:restriction&nbsp;base=&quot;xsd:string&quot;&gt; <br /> &lt;xsd:enumeration&nbsp;value=&quot;BeiJing&quot;/&gt; <br /> &lt;xsd:enumeration&nbsp;value=&quot;NanChang&quot;/&gt; <br /> &lt;xsd:enumeration&nbsp;value=&quot;ShangHai&quot;/&gt; <br /> &lt;/xsd:restriction&gt; <br /> &lt;/xsd:simpleType&gt; <br /> <br /> 7????????????????????????string,integer?????????????????б?????????????????????????????????Schema????NMTOKENS??IDREFS??ENTITIES??????????б?????????????????е????????????list(?б?)???????????????е?list???????????????????б??list??????? <br /> ?磺 <br /> &lt;xsd:simpleType&nbsp;name=&quot;listOfMyIntType&quot;&gt; <br /> &lt;xsd:list&nbsp;itemType=&quot;myInteger&quot;/&gt; <br /> &lt;/xsd:simpleType&gt; <br /> ??XML?????????б????????????????????з????????????????listOfMyIntType?????????????? <br /> &lt;listOfMyInt&gt;20003&nbsp;15037&nbsp;95977&nbsp;95945&lt;/listOfMyInt&gt; <br /> <br /> 8???м???????????????????list??????????????????????length??minLength??maxLength??enumeration???磺 <br /> &lt;xsd:simpleType&nbsp;name=&quot;USStateList&quot;&gt; <br /> &lt;xsd:list&nbsp;itemType=&quot;USState&quot;/&gt; <br /> &lt;/xsd:simpleType&gt; <br /> &lt;xsd:simpleType&nbsp;name=&quot;SixUSStates&quot;&gt; <br /> &lt;xsd:restriction&nbsp;base=&quot;USStateList&quot;&gt; <br /> &lt;xsd:length&nbsp;value=&quot;6&quot;/&gt; <br /> &lt;/xsd:restriction&gt; <br /> &lt;/xsd:simpleType&gt; <br /> ???????б????????????????string?????????string?????е?????б????????????????????????<br /> 9?????????????????????????type??????????????????????????????????????????????磺 <br /> ??????????壺 <br /> &lt;xsd:element&nbsp;name=&rdquo;comment&rdquo;&nbsp;type=&rdquo;xsd:string&rdquo;&gt; <br /> ???????????壺 <br /> &lt;xsd:element&nbsp;name=&rdquo;quantity&rdquo;&gt; <br /> &lt;xsd:simpleType&gt; <br /> &lt;xsd:restriction&nbsp;base=&rdquo;xsd:positiveInteger&rdquo;&gt; <br /> &lt;xsd:maxExclusive&nbsp;value=&rdquo;100&rdquo;&nbsp;/&gt; <br /> &lt;/xsd:restriction&gt; <br /> &lt;/xsd:simpleType&gt; <br /> &lt;/xsd:element&gt; <br /> <br /> 10??union???????????????XML???????е???????????union???????????????е????????????????????????C++?е????????????????????磺 <br /> &lt;xsd:simpleType&nbsp;name=&quot;addrUnion&quot;&gt; <br /> &lt;xsd:union&nbsp;memberTypes=&quot;xsd:string&nbsp;integer&quot;/&gt; <br /> &lt;/xsd:simpleType&gt; <br /> <br /> 11??????????????????????????????????????????????????????????????????????????????????????????????????????????????У??????????????????????????????????????????????????????????????????????????????simpleContent?????????????????complexContent????????????????????complexType??????mixed???true????????????????????£? <br /> <br /> ??????????????????????????????????????????? <br /> &lt;xsd:element&nbsp;name=&quot;internationalPrice&quot;&gt; <br /> &lt;xsd:complexType&gt; <br /> &lt;xsd:simpleContent&gt; <br /> &lt;xsd:extension&nbsp;base=&quot;xsd:decimal&quot;&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;currency&quot;&nbsp;type=&quot;xsd:string&quot;/&gt;</p> <p>&lt;/xsd:extension&gt; <br /> &lt;/xsd:simpleContent&gt; <br /> &lt;/xsd:complexType&gt; <br /> &lt;/xsd:element&gt; <br /> <br /> ???????????????element??????attribute??????? <br /> &lt;xsd:element&nbsp;name=&quot;internationalPrice&quot;&gt; <br /> &lt;xsd:complexType&gt; <br /> &lt;xsd:complexContent&gt; <br /> &lt;xsd:element&nbsp;name=&rdquo;Country&rdquo;&nbsp;?type=&rdquo;xsd:string&rdquo;&nbsp;/&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;currency&quot;&nbsp;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;value&quot;?type=&quot;xsd:decimal&quot;/&gt; <br /> &lt;/xsd:complexContent&gt; <br /> &lt;/xsd:complexType&gt; <br /> &lt;/xsd:element&gt; <br /> ?????????????????????????complexContent????????????????д????? <br /> &lt;xsd:element&nbsp;name=&quot;internationalPrice&quot;&gt; <br /> &lt;xsd:complexType&gt; <br /> &lt;xsd:element&nbsp;name=&rdquo;Country&rdquo;type=&rdquo;xsd:string&rdquo;&nbsp;/&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;currency&quot;&nbsp;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:attribute&nbsp;name=&quot;value&quot;?type=&quot;xsd:decimal&quot;/&gt; <br /> &lt;/xsd:complexContent&gt; <br /> &lt;/xsd:element&gt; <br /> <br /> ??????????? <br /> &lt;xsd:element&nbsp;name=&quot;letterBody&quot;&gt; <br /> &lt;xsd:complexType&nbsp;mixed=&quot;true&quot;&gt; <br /> &lt;xsd:sequence&gt; <br /> &lt;xsd:element&nbsp;name=&quot;salutation&quot;&gt; <br /> &lt;xsd:complexType&nbsp;mixed=&quot;true&quot;&gt; <br /> &lt;xsd:sequence&gt; <br /> &lt;xsd:element&nbsp;name=&quot;name&quot;&nbsp;type=&quot;xsd:string&quot;/&gt; <br /> &lt;/xsd:sequence&gt; <br /> &lt;/xsd:complexType&gt; <br /> &lt;/xsd:element&gt; <br /> &lt;xsd:element&nbsp;name=&quot;quantity&quot;type=&quot;xsd:positiveInteger&quot;/&gt; <br /> &lt;xsd:element&nbsp;name=&quot;productName&quot;&nbsp;type=&quot;xsd:string&quot;/&gt; <br /> &lt;xsd:element&nbsp;name=&quot;shipDate&quot;type=&quot;xsd:date&quot;&nbsp;minOccurs=&quot;0&quot;/&gt; <br /> &lt;/xsd:sequence&gt; <br /> &lt;/xsd:complexType& [Xml???]XML??Web?????.NET??? http://www.haxv.top//tech/865.html ??????? Xml??? 2010/2/16 18:48:24 <p>&nbsp;&nbsp;&nbsp; ??ó?????????????????????????????????????????????????????Ч??????????????????????????ó????????</p> <p>&nbsp;&nbsp;&nbsp; ???????????????????????????????????????ó????????????£????????????????????????????????????ó?????????</p> <p>&nbsp;&nbsp;&nbsp; ????????????????????????????????????????????????????и??????n????????????????????и???????????ó?????м???????????????ó??????????????????????????о??????????????????????????????????ι????????????????????????????潫???????????????г????????????????????????Ч???????????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ????????????????μ?????????????????????????????????&ldquo;????????????&rdquo;????XML.XML??????????κ?????κε????????????????????ó?????????????????ó?????????????????????????????????????У???????????????Щ??CD???а??????????????????????????????????????ID???????????????????????????????????y????????????</p> <p>&nbsp;&nbsp;&nbsp; ????У???????????????????Ч??n??????????????????????????Web???????????????????????????????Web????????????????????????????ó?????????????????Web???????????ó?????????????????????Э?飬?????????Э?饗HTTP????XML?????????????????????????????????????????Web????????Web??????????</p> <p>&nbsp;&nbsp;&nbsp; ???????????????????????????Web????????API??????????????????????????Web?????????ó????У????????Web API???????????????????λ????????е??????????磬Microsoft Passport?????????????????????ó??????????????Passport????????????????????????Passport????????????????Passport?????????????????????????????С???????????</p> <p>&nbsp;&nbsp;&nbsp; ??????</p> <p>&nbsp;&nbsp;&nbsp; ??????????з????ó???????????????????μ??????Web?з??????????ó???????????????μ???</p> <p>&nbsp;&nbsp;&nbsp; ?????????????ó???????????÷???????????????磺??????????????????DCOM??????????????????????????????????????CORBA????Sun?????????????RMI???????????????????????????????????????????????????????????????????????????????С?</p> <p>&nbsp;&nbsp;&nbsp; ??Щ?????????????????????????????????????????????????????????????????????????????н??????????????????????????????????????????????????????л???????仯????????????????????磬???????????ó?????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ???????????????????????????????ó??????????????????????????????????????????????????????????????????????Χ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ????Web?????????????????????е??κ?????????????л????????????ó???????????С?????????????????????????????????????????????????????????????????????HTTP???????????Э?饗SMTP?????????????XML??????????????</p> <p>&nbsp;&nbsp;&nbsp; ?????????????????????????????????????????????????????????????????????????С???????????????????????????????????????????????????????????????????????????????У??????????????????????????2???ó???????μ????????????????????????棬????</p> <p>&nbsp;&nbsp;&nbsp; ??????棬????????????????????????????????????????迼??????????????????????迼???????????????????Ψ???????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ???????????????????????????????????磬??????????κ??????и???????????????????????????????????????????????????????????????κ???????????????????????????????????????????????????????????</p> <p><br /> ???????XML??SOAP</p> <p>???????Web???????????????????????Web?????Web??????????????????????????????????????????????XML??Web??????????XML????????????飺?????????????????????????&ldquo;??????&rdquo;??</p> <p>????SOAP?????????????????????????????????????????????ó??????????????????????α???????????????????磺?????????????飩???????α?????????????????????к?????????????????????????ó??????????????????????????????Э??(SOAP)??XML????????????????????????????ù??????????α???????????????</p> <p>????Web????????????(WSDL)???????ó???????????α?????????????????????????????????????????????????Ч??????????????????????????????????磬??????????????????ó????????????????????????????????г???????????Web????????????(WSDL)?????XML????????????????????????????????Web???????幦???</p> <p>????&ldquo;SOAP????&rdquo;????????????????????ζ?λ????????????????????£??????????????????????????????????????&ldquo;SOAP????&rdquo;??????????????????????????????????????????SCL??????</p> <p>????????????????????????????????????????Web?????????????????????????????ó????У????????????????з??????????????????????????ó????????Web??????з?????????</p> <p>????.NET????Web????????</p> <p>???????????????????????????????????????????????????????.NET????????????????.NET???????????????????????Web??????Web???????????????????????.NET?????????????????????(COM)?????????????????????????????л?????????????????????Ч??Web????????????????&ldquo;???&rdquo;??????????????????????????????????????????????????????ó????????????????</p> <p>????.NET????????????????????????????????????ж??ν?????????????????&ldquo;???????????&rdquo;??????ASP+??</p> <p>?????????????????</p> <p>????????????????????????????????????????????????????????????????????????????й????У????????????????????????????й????У??????????????????????????????????????????????????????????????????????????????Σ??????????????Щ?仯????????COM??????????????????????????????????????????????????????????????÷?????ɡ??????????書?????????д?????????Щ?????????????????????????????????????б?????????</p> <p>?????????????????????????????????棺?????????????????????????????Visual Basic?????????????????????????????VBRUN????Visual C++???Visual FoxPro???Jscript???SmallTalk??Perl??Python??Java???????????????MSVCRT??NET????????????????????????????????????????????????????????????????????</p> <p>????????????</p> <p>????.NET????е??????????????????????????????????λ??????????????(API)?????C++??????????????????????Java?????????????Windows??????????Visual Basic???????????Visual Basic API????????????.NET????????????????????????????????????????????????????????????????????????????????????????????????API????.NET??????????????????????????????????????????Jscript??C++?????б?????????????????????????????????????????????????</p> <p>?????????&ldquo;???????????&rdquo;(ASP+)</p> <p>????ASP+????? .NET???????????????????????????Web??ó????????????????????????????????ɡ?????????Web??ó?????????÷????????????????????????ASP+???????????????????????????????????????(HTML)???????????С???????????????????????????????????Щ?????????Web??????????????????????????HTML????????????????????????????????????????????????????Web?????????????????????????????????????е???????ASP+?????Щ??????????????????????????????????Щ?????????????? [Xml???]??дxml?????2??С???? http://www.haxv.top//tech/829.html ???? Xml??? 2010/2/7 12:56:10 <p>#region ??дxml?????2??С??????2005 4 2 by hyc</p> <p>&nbsp;&nbsp;public void SetXmlFileValue(string xmlPath,string AppKey,string AppValue)//дxmlPath?????·??+???????AppKey?? Key Name??AppValue??Value<br /> &nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;XmlDocument xDoc = new XmlDocument();<br /> &nbsp;&nbsp;&nbsp;xDoc.Load(xmlPath);<br /> &nbsp;&nbsp;&nbsp;XmlNode xNode;<br /> &nbsp;&nbsp;&nbsp;XmlElement xElem1;<br /> &nbsp;&nbsp;&nbsp;XmlElement xElem2;</p> <p>&nbsp;&nbsp;&nbsp;xNode =&nbsp; xDoc.SelectSingleNode(&quot;//appSettings&quot;);</p> <p>&nbsp;&nbsp;&nbsp;xElem1 = (XmlElement)xNode.SelectSingleNode(&quot;//add[@key='&quot; + AppKey + &quot;']&quot;);<br /> &nbsp;&nbsp;&nbsp;if ( xElem1 != null )<br /> &nbsp;&nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;&nbsp;xElem1.SetAttribute(&quot;value&quot;,AppValue);<br /> &nbsp;&nbsp;&nbsp;}<br /> &nbsp;&nbsp;&nbsp;else<br /> &nbsp;&nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;&nbsp;xElem2 = xDoc.CreateElement(&quot;add&quot;);<br /> &nbsp;&nbsp;&nbsp;&nbsp;xElem2.SetAttribute(&quot;key&quot;,AppKey);<br /> &nbsp;&nbsp;&nbsp;&nbsp;xElem2.SetAttribute(&quot;value&quot;,AppValue);<br /> &nbsp;&nbsp;&nbsp;&nbsp;xNode.AppendChild(xElem2);<br /> &nbsp;&nbsp;&nbsp;}<br /> &nbsp;&nbsp;&nbsp;xDoc.Save(xmlPath);<br /> &nbsp;&nbsp;}</p> <p><br /> &nbsp;&nbsp;public void GetXmlFileValue(string xmlPath,string AppKey,ref string AppValue)//??xmlPath?????·??+???????AppKey?? Key Name??AppValue??Value<br /> &nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;XmlDocument xDoc = new XmlDocument();<br /> &nbsp;&nbsp;&nbsp;xDoc.Load(xmlPath);<br /> &nbsp;&nbsp;&nbsp;XmlNode xNode;<br /> &nbsp;&nbsp;&nbsp;XmlElement xElem1;</p> <p>&nbsp;&nbsp;&nbsp;xNode =&nbsp; xDoc.SelectSingleNode(&quot;//appSettings&quot;);</p> <p>&nbsp;&nbsp;&nbsp;xElem1 = (XmlElement)xNode.SelectSingleNode(&quot;//add[@key='&quot; + AppKey + &quot;']&quot;);<br /> &nbsp;&nbsp;&nbsp;if ( xElem1 != null )<br /> &nbsp;&nbsp;&nbsp;{<br /> &nbsp;&nbsp;&nbsp;&nbsp;AppValue=xElem1.GetAttribute (&quot;value&quot;);<br /> &nbsp;&nbsp;&nbsp;}<br /> &nbsp;&nbsp;&nbsp;else<br /> &nbsp;&nbsp;&nbsp;{<br /> //&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show (&quot;There is not any information!&quot;);<br /> &nbsp;&nbsp;&nbsp;}</p> <p>&nbsp;&nbsp;}</p> <p>&nbsp;&nbsp;#endregion</p> [PHP???]????PHP?????session????????????????? http://www.haxv.top//tech/828.html ??????? PHP??? 2010/2/7 12:50:35 <p>PHP??session??????????????????????????Щ???????????????ī??????????????Щ??????????????????????????</p> <p><strong>1???????????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">Warning: Cannot send session cookie - headers already sent <br /> Warning: Cannot send session cache limiter - headers already sent</td> </tr> </tbody> </table> </p> <p><strong>???????????</strong></p> <p>????????????????????????????session_start()??????????????html???????????????????????а????????????echo??print??????????????????echo??print????????????????????????html??????????????????????????????session_start()????????????С?</p> <p><strong>2?????????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">Warning: open(F:/689\php\sessiondata\sess_66a39376b873f4daecf239891edc98b5, O_RDWR) failed</td> </tr> </tbody> </table> </p> <p><strong>??????????????? </strong></p> <p>???????????????????????????php.ini?й???session.save_path?????????ú?????????????session.save_path??session.cookie_path ???????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">session_save_path = c:\temp <br /> session.cookie_path = \</td> </tr> </tbody> </table> </p> <p>?????c:\??????????temp?????ɡ?</p> <p><strong>3?????????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">Warning: Trying to destroy uninitialized session in</td> </tr> </tbody> </table> </p> <p>????????????????????????????????????????????session_destroy()????????????????????session_destroy()????????????????У????????????????????????session_destroy()???????????session_start()????session??????</p> <p><strong>4??????:????????session??id???</strong>??</p> <p>??????????:</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">echo SID;</td> </tr> </tbody> </table> </p> <p><strong>5??????</strong></p> <p>???????????header??????????κε???????????include?????config.php?????????config.php??????????κε?????????session?????????????1???????????????????????header??????session_start()????????</p> <p>??:????????????????????php??????????header()?????????κε???????????????include??????????κε????????????????ù??????&gt;???PHP???????????????????????????????&gt;??????棬????????л????????????????????л????????????????</p> <p>????????????PHP4.1.2?У?????汾????в??????</p> <p>6???????session???????????????????????session????????</p> <p>????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">session_start(); <br /> if(!session_registered('login') ???? $login != true) <br /> { <br /> echo &quot;????е??&quot;; <br /> exit; <br /> }</td> </tr> </tbody> </table> </p> <p>7?????????session_register()?????session???????????????header????javascript??????????????????????У???????????session??????????????????ν????</p> <p>??????????Σ?</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">&lt;? <br /> session_start(); <br /> $ok = 'love you'; <br /> session_register('ok'); <br /> header(&quot;location : next.php&quot;); <br /> ?&gt;</td> </tr> </tbody> </table> </p> <p>next.php</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">&lt;? <br /> session_start(); <br /> echo $ok; <br /> ?&gt;</td> </tr> </tbody> </table> </p> <p><strong>??????????</strong></p> <p>??????header??????window.location??????????????????????????session????????????????????????????????????????????????????</p> <p>?????н????????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">header(&quot;Location: next.php&quot; .&quot;?&quot; . SID);</td> </tr> </tbody> </table> </p> <p>???????????????????session????id???????????????????????檔</p> <p><strong>8??session??δ?????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">session_register('data'); <br /> $data=array(1,2,3,4);</td> </tr> </tbody> </table> </p> <p><strong>?????????????</strong></p> <p>9????????????????$HTTP_GET_VARS['**']?????????session????</p> <p>????????????????????global??????????session???????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word">$HTTP_SESSION_VARS <br /> $_SESSION</td> </tr> </tbody> </table> </p> <p>????:</p> <p> <table cellspacing="0" cel [Asp???]ASP???????????????????? http://www.haxv.top//tech/827.html ??????? Asp??? 2010/2/7 12:48:33 <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> &lt;% FunctIon DownloadFIle(StrFIle)<br /> StrFIlename=StrFIle<br /> Response.Buffer=True<br /> Response.Clear<br /> Set S=Server.CreateObJect(&quot;ADODB.Stream&quot;)<br /> S.Open<br /> S.Type=1<br /> on Error Resume Next<br /> Set Fso=Server.CreateObJect(&quot;ScrIptIng.FIleSystemObJect&quot;)<br /> If Not Fso.FIleExists(StrFIleName) Then<br /> From_Url=Cstr(Request.ServerVarIables(&quot;HTTP_REFERER&quot;))<br /> Serv_Url=Cstr(Request.ServerVarIables(&quot;SERVER_NAME&quot;))<br /> If MId(From_Url,8,len(Serv_Url)) &lt;&gt; Serv_Url Then<br /> Response.WrIte &quot;????????????????????.&quot;<br /> Response.End<br /> End If<br /> Response.RedIrect Request.ServerVarIables(&quot;HTTP_REFERER&quot;)<br /> Response.End<br /> End If<br /> FileExt=MId(StrFIlename,InStrRev(StrFIleName, &quot;.&quot;)+1)<br /> Select Case UCase(FIleExt)<br /> Case &quot;ASP&quot;, &quot;ASA&quot;, &quot;ASPX&quot;, &quot;ASAX&quot;, &quot;MDB&quot;, &quot;PHP&quot;, &quot;JSP&quot;, &quot;SHTML&quot;, &quot;HTML&quot;, &quot;HTM&quot;, &quot;TV&quot;, &quot;DATA&quot;<br /> From_Url=Cstr(Request.ServerVarIables(&quot;HTTP_REFERER&quot;))<br /> Serv_Url=Cstr(Request.ServerVarIables(&quot;SERVER_NAME&quot;))<br /> If MId(From_Url,8,len(Serv_Url)) &lt;&gt; Serv_Url Then<br /> Response.WrIte &quot;????????????????????.&quot;<br /> Response.End<br /> End If<br /> Response.RedIrect Request.ServerVarIables(&quot;HTTP_REFERER&quot;)<br /> Response.End<br /> End Select<br /> Set F=Fso.GetFIle(StrFIlename)<br /> IntFIlelength=F.SIze<br /> s.LoadFromFIle(StrFIlename)<br /> If Err Then<br /> From_Url=Cstr(Request.ServerVarIables(&quot;HTTP_REFERER&quot;))<br /> Serv_Url=Cstr(Request.ServerVarIables(&quot;SERVER_NAME&quot;))<br /> If MId(From_Url,8,len(Serv_Url)) &lt;&gt; Serv_Url Then<br /> Response.WrIte &quot;??????????????????????.&quot;<br /> Response.End<br /> End If<br /> Response.RedIrect Request.ServerVarIables(&quot;HTTP_REFERER&quot;)<br /> Response.End<br /> End If<br /> Set Upload=Server.CreateObJect(&quot;PersIts.Upload&quot;)<br /> If Upload Is Nothing Then<br /> Response.AddHeader &quot;Content-DIsposItIon&quot;,&quot;attachment; FIlename=&quot;&amp;F.Name<br /> Response.AddHeader &quot;Content-Length&quot;,IntFilelength<br /> Response.CharSet=&quot;UTF-8&quot;<br /> Response.ContentType=&quot;application/x-download&quot;<br /> Response.BinaryWrite S.Read<br /> Response.Flush<br /> S.Close<br /> Set s=NothIng<br /> Else<br /> Upload.SendBinary StrFIlename,True,&quot;application/x-download&quot;,False<br /> End If<br /> End FunctIon<br /> %&gt;</td> </tr> </tbody> </table> </p> <p>????</p> <p>&lt;%Call DownloadFIle(&quot;??????&quot;)%&gt;</p> [PHP???]php.ini?????????????? http://www.haxv.top//tech/687.html ??????? PHP??? 2010/1/10 18:57:20 <p>PHP????????????????????書???????????? <br /> ; ??php.ini????????????????????仯?? <br /> ; ??????μ?PHP?汾????о????php.ini???к???? <br /> ;;;;;;;;;;;;;;;;;;; <br /> ; ?????????? ; <br /> ;;;;;;;;;;;;;;;;;;; <br /> ; ????????????PHP????????.?????PHP??????????????????????&nbsp; &nbsp;<br /> ; 'php.ini'.PHP ??????Щ??????β????????????????????????????PHPRC <br /> ; ?????·??????????????·??. <br /> ; ??windows?£????????·????Windows?????. <br /> ; ???????????£?php.ini?????·???????? -c ???????. <br /> ; ??????????????.?????????÷??';'??????б?????????????????? <br /> ; ?μ????????. ?????????? : [Foo]??????????????????????????? <br /> ; ??????????. <br /> ; <br /> ; ?????????????????? <br /> ; ??????? = ? <br /> ; directive = value <br /> ; ??????? ?? *??Сд??е?* - foo=bar ????? FOO = bar. <br /> ; <br /> ; ???????????????????????????? PHP ???? (?磺 E_ALL or M_PI), INI ?????е? <br /> ; ??? (On, Off, True, False, Yes, No and None) ????????????? <br /> ; (??: E_ALL &amp; ~E_NOTICE), ???????????????????????(&quot;foo&quot;). <br /> ; <br /> ; INI ????????????????λ???????????. <br /> ; | bitwise OR <br /> ; &amp; bitwise AND <br /> ; ~ bitwise NOT <br /> ; ! boolean NOT <br /> ; <br /> ; ??????????? 1, On, True or Yes ??Щ??????????. <br /> ; ??????? 0, Off, False or No ??Щ?????????. <br /> ; <br /> ; ?????????????????????д?κζ?????????????? None ?????: <br /> ; <br /> ; foo = ; ??foo?????????? <br /> ; foo = none ; ??foo?????????? <br /> ; foo = &quot;none&quot; ; ??foo????????'none' <br /> ; <br /> ; ??????????????ó?????????Щ???????????????????????? PHP ??????????? <br /> ; Zend ?????????????????????Щ???????*???*?????Щ????. <br /> ; <br /> ; ?????? php.ini-dist ??????趨????????????????????????????? php.ini <br /> ; ??????????????????Щ?У?????????????. <br /> ;;;;;;;;;;;;;;;;;;;; <br /> ; ??????? ; <br /> ;;;;;;;;;;;;;;;;;;;; <br /> engine = On <br /> ; ? PHP scripting language engine??PHP ??????????棩?? Apache????Ч. <br /> short_open_tag = On <br /> ; ???? &lt;? ???????????????. ???? &lt;?php and &lt;script&gt; tags ???????. <br /> asp_tags = Off <br /> ; ????ASP-style &lt;% %&gt; tags <br /> precision = 14 <br /> ; ??????????????????Чλ?? <br /> y2k_compliance = Off <br /> ; ???? 2000????? (???????Y2K???????????е???????) <br /> output_buffering = Off <br /> ; ??????????????????????????????????? header???????????cookies???? <br /> ; ??????????????????????.??????????????????????????????棬 <br /> ; ??????????????? On ??????????????????????. <br /> output_handler = ; ??????????????????????????????????? <br /> ; ?????????????????????????????. <br /> ; ???????????output_handler ???&quot;ob_gzhandler&quot;, <br /> ; ????????????????gzip??deflate?????????????. <br /> ; ???????????????????????????. <br /> implicit_flush = Off <br /> ; ???flush????£???PHP ????????????????????????????????????. <br /> ; ???Ч??????? print() ?? echo() ???ú???? HTML ??????flush()????. <br /> ; ???????????????????????????????????debug?????д?. <br /> allow_call_time_pass_reference = On <br /> ; ????????????????????????????.????????????飬 <br /> ; ????????????汾??PHP/Zend???????. <br /> ; ??????????????Щ??????????????????????????????. <br /> ; ??????????????????????????????????????????????????汾???????? <br /> ; ???????????.??????????????????????????棬?????????????????????? <br /> ; ?????. <br /> ; Safe Mode ????? <br /> safe_mode = Off <br /> safe_mode_exec_dir = <br /> safe_mode_allowed_env_vars = PHP_ <br /> ; ??Setting certain environment variables <br /> ; ??may be a potential security breach. <br /> ; ???????????????????б?.??????У???????????滻 <br /> ; ??????г????????????????????. <br /> ; ?????????????? ?趨??PHP_??????????????????: PHP_FOO=BAR??. <br /> ; ???: ????????????PHP ?????????????????????! <br /> safe_mode_protected_env_vars = LD_LIBRARY_PATH <br /> ; ?????????????????????????????б?????????????????????putenv () ?????. <br /> ; ??Щ??????????safe_mode_allowed_env_vars ??????????????μ??????. <br /> disable_functions = <br /> ; ?????????????????????????????????Ч. <br /> ; ???????????????????????б?. <br /> ; ?????? *????* ??????????????. <br /> ; ?????????????. <br /> ; ?????&lt;font color=???&gt;???????????????. <br /> highlight.string = #DD0000 <br /> highlight.comment = #FF8000 <br /> highlight.keyword = #007700 <br /> highlight.bg = #FFFFFF <br /> highlight.default = #0000BB <br /> highlight.html = #000000 <br /> ; Misc ???? <br /> expose_php = Off <br /> ; ???? PHP ??????????????????????????磺?????? &mdash;PHP&mdash;??Web???? <br /> ; ???????????. <br /> ; ????????????????????power-by??header???????????.?? <br /> ; ???????а???????в, ????????????????????????PHP????????. <br /> ;;;;;;;;;;;;;;;;;;; <br /> ; Resource Limits ; <br /> ;;;;;;;;;;;;;;;;;;; <br /> max_execution_time = 30 ; ?????????????????, ????? <br /> memory_limit = 8388608 ; ????????????????????? (??????8MB) <br /> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; <br /> ; Error handling and logging ; <br /> ; ?????????? ; <br /> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; <br /> ; ?????????λ??.?????????????????????????????. <br /> ; E_ALL - ???е???????? <br /> ; E_ERROR - ????????????? <br /> ; E_WARNING - ????????棨??????????&nbsp; &nbsp;<br /> ; E_PARSE - ????????????? <br /> ; E_NOTICE - ?????????(??Щ???????????????bug?????? <br /> ;???????????????????.(?磺????δ?????????????????????? <br /> ;????????????????????δ??????????) <br /> ; E_CORE_ERROR - ??????PHP??????????????е????????? <br /> ; E_CORE_WARNING - ??????PHP??????????????е????(?????????) <br /> ; E_COMPILE_ERROR - ???????????? <br /> ; E_COMPILE_WARNING - ?????????(?????????) <br /> ; E_USER_ERROR - ??????????????? <br /> ; E_USER_WARNING - ??????????????? <br /> ; E_USER_NOTICE - ???????????????? <br /> ; ????: <br /> ; error_reporting = E_ALL &amp; ~E_NOTICE ; ??????е???????????? <br /> ; error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ????????? <br /> error_reporting = E_ALL &amp; ~E_NOTICE ; ??????е???????????? <br /> display_errors = On ; ????????????(?????????????)</p> <p>[NextPae]; ???????????web????????????????????????????? <br /> ; ??????????棨?ο????棩. <br /> ; ???????????web???????? display_errors ??Ч???? <br /> ; ????Щ?й?????????????????web??????????·???? <br /> ; ????????滮???????. <br /> display_startup_errors = Off ; ??????display_erroes???????????PHP???????????? <br /> ; ?????????????. <br /> ; ?????鱣??? display_startup_errors ???? <br /> ; ?????????????. <br /> log_errors = Off ; ????????????????????????????????stderr??????????????error_log(???????? <br /> ; ??????????????????????????????????????web??????????????? <br /> ; ????????????. <br /> track_errors = Off ; ?????????? ????/???? ???????? $php_errormsg (boolean) <br /> ;error_prepend_string = &quot;&lt;font color=ff0000&gt;&quot; ; ???????????????????&nbsp; &nbsp;<br /> ;error_append_string = &quot;&lt;/font&gt;&quot; ; ???????????????????? <br /> ;error_log = filename ; ?????????????????? <br /> ;error_log = syslog ; ????????????????? syslog (NT ?μ???????, Windows 95????Ч) <br /> warn_plus_overloading = Off ; ????&lsquo;+&rsquo;?????????????? <br /> ;;;;;;;;;;;;;;;;; <br /> ; Data Handling ; <br /> ;;;;;;;;;;;;;;;;; <br /> variables_order = &quot;EGP [.Net???]??????ASP.net?????? http://www.haxv.top//tech/686.html ??????? .Net??? 2010/1/10 18:55:45 <p>?????????SESSION??COOKIE?????</p> <p>????????????????????Щ?????????????????SESSION??COOKIE????ASP.NET?????COOKIE??ASP??????鷳?????????????????????</p> <p>????????SESSION????????????ASP????<br /> д?????SESSION??</p> <p>Session[&quot;username&quot;])=&quot;aa&quot;;</p> <p>---------------------<br /> Session(&quot;username&quot;)=&quot;aa&quot;</p> <p>??????SESSINN??</p> <p>string username= Session[&quot;username&quot;];</p> <p>-------------------------</p> <p>dim username=Session(&quot;username&quot;)</p> <p>?????????COOKIE??д?? <br /> DateTime dt=DateTime.Now; //???&lt;%@Import Namespace=&quot;System&quot;%&gt;???????????<br /> HttpCookie mycookie=new HttpCookie(&quot;logname&quot;);//?????μ?COOKIE????<br /> mycookie.Value=&quot;aa&quot;;//???<br /> mycookie.Expires=Convert.ToDateTime(dt+TimeSpan.FromDays(1));//?趨????????1??<br /> Response.Cookies.Add(mycookie1);//д??COOKIE</p> <p>-------------------------------</p> <p>dim dt as DateTime<br /> dt=DataTime.Now<br /> dim mycookie as HttpCookie<br /> mycookie=new HttpCookie(&quot;logname&quot;)<br /> mycookie.Value=&quot;aa&quot;<br /> mycookie.Expires=Convert.ToDateTime(dt+TimeSpan.FromDays(1))<br /> Response.Cookies.Add(mycookie1)</p> <p>?????COOKIE??????</p> <p>HttpCookie mycookie=Request.Cookies[&quot;username&quot;]; <br /> string username=mycookie.Value;</p> <p>-----------------------<br /> dim mycookie as HttpCookie <br /> mycookie=Request.Cookies[&quot;username&quot;]<br /> dim string=mycookie.Value</p> <p>???????????ASP.NET????????????????????????д??????????????????????????????????????</p> [.Net???]??????ASP.net?????? http://www.haxv.top//tech/685.html ??????? .Net??? 2010/1/10 18:54:25 <p>???????????DATAGRID??????</p> <p>????DATAGRID???????Ч????????????????????????????????????????????????????????????????????????÷???????????????????????DATADRID???????????????ICOLLECTION????????2??????÷?????????DATAREADER????????????????????DATATABLE?????檔</p> <p>&lt;script runat=&quot;server&quot; language=&quot;c#&quot;&gt;<br /> void Page_Load()<br /> { <br /> string strConnection=&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;;<br /> strConnection+=Server.MapPath(&quot;guestbook.mdb&quot;);<br /> OleDbConnection objConnection=new OleDbConnection(strConnection);<br /> OleDbDataAdapter objDataAdapter=new OleDbDataAdapter(&quot;select * from guestbook&quot;,objConnection);<br /> DataSet objDataSet=new DataSet();<br /> objDataAdapter.Fill(objDataSet);<br /> dgrdMain.DataSource=objDataSet;<br /> dgrdMain.DataBind();<br /> }<br /> void dgrdMain_PageIndexChanged(Object sender, DataGridPageChangedEventArgs e)<br /> {<br /> dgrdMain.CurrentPageIndex = e.NewPageIndex; <br /> DataBind(); <br /> } <br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;body&gt; <br /> &lt;asp:DataGrid <br /> id=&quot;dgrdMain&quot; <br /> cellpadding=&quot;1&quot; <br /> showheader=&quot;true&quot; <br /> borderwidth=&quot;0&quot;<br /> allowpaging=&quot;true&quot; ???÷??????<br /> pagesize=&quot;3&quot; ????????????? <br /> onpageindexchanged=&quot;dgrdMain_pageindexchanged &quot; ?????&times;???????dgrdMain_PageIndexChanged()<br /> runat=&quot;server&quot; <br /> /&gt; <br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>&lt;script runat=&quot;server&quot; language=&quot;vb&quot;&gt;<br /> subPage_Load<br /> dim objConnection as OleDbConnection<br /> dim objDataAdapter as OleDbDataAdapter<br /> dim objDataSet as DataSet<br /> objConnection=new OleDbConnection(&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;+Server.MapPath(&quot;guestbook.mdb&quot;))<br /> objDataAdapter=new OleDbDataAdapter(&quot;select * from guestbook&quot;,objConnection)<br /> objDataSet=new DataSet<br /> objDataAdapter.Fill(objDataSet) <br /> dgrdMain.DataSource=objDataSet<br /> dgrdMain.DataBind()<br /> end sub<br /> sub dgrdMain_PageIndexChanged(sender as object,e as datagridpagechangedeventargs)<br /> dgrdMain.CurrentPageIndex = e.NewPageIndex<br /> DataBind<br /> end sub<br /> &lt;/script&gt; <br /> &lt;html&gt;<br /> &lt;body&gt; <br /> &lt;asp:DataGrid <br /> id=&quot;dgrdMain&quot; <br /> cellpadding=&quot;1&quot; <br /> showheader=&quot;true&quot; <br /> borderwidth=&quot;0&quot;<br /> allowpaging=&quot;true&quot; ???÷??????<br /> pagesize=&quot;3&quot; ????????????? <br /> onpageindexchanged=&quot;dgrdMain_pageindexchanged &quot; ?????&times;???????dgrdMain_PageIndexChanged()<br /> runat=&quot;server&quot; <br /> /&gt; <br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>?????????????????????????ò???pagestyle-mode=&quot;nextprev/numericpages&quot;???趨????????????????????????????????????????????????????????????????????pagestyle-nextpagetext???趨????????????????????pagestyle-prevpagetext???趨???????????????????????????????????PagerStyle-PageButtonCount???趨????????????????????????????????10??</p> <p>????????????????????SESSION??COOKIE??</p> [.Net???]??????ASP.net?????? http://www.haxv.top//tech/684.html ??????? .Net??? 2010/1/10 18:50:56 <p>??????????????DATAGRID?????</p> <p>?????ASP?У??????????????????????????????????????????????в????????????????????&lt;tr&gt;???????????????????????????????????????ASP.NET?о???????й???????????DATAGRID??????</p> <p>????????DATAGRID??????????????<br /> BackImageUrl=&quot;&quot; ??????<br /> CellSpacing=&quot;&quot; ???????<br /> CellPadding=&quot;&quot; ????????<br /> cssClass=&quot;&quot; ????CSS???</p> <p>DATAGRID???????????е??????????????????????????????????????????????壬??ShowHeader=&quot;true/false&quot;???????????????????????????????????????????????????????????е???????????????????????????????????????????????</p> <p>???濴????????????????м????????д???</p> <p>&lt;script runat=&quot;server&quot; language=&quot;c#&quot;&gt;<br /> void Page_Load()<br /> {<br /> string strConnection=&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;;<br /> strConnection+=Server.MapPath(&quot;guestbook.mdb&quot;);<br /> OleDbConnection objConnection=new OleDbConnection(strConnection);<br /> OleDbCommand objCommand1 = new OleDbCommand(&quot;select * from guestbook&quot;,objConnection);<br /> objConnection.Open();<br /> dgrdMain.DataSource=objCommand1.ExecuteReader();//dgrdMain?????????DATAGRID??ID<br /> dgrdMain.DataBind();<br /> objConnection.Close();<br /> }<br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;body&gt; <br /> &lt;asp:DataGrid <br /> id=&quot;dgrdMain&quot; <br /> cellpadding=&quot;1&quot; <br /> showheader=&quot;true&quot; <br /> borderwidth=&quot;0&quot;<br /> &nbsp;</p> <p>runat=&quot;server&quot; <br /> /&gt; <br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>????VB??汾????δ???????????????</p> <p>?????????????????Σ?id,aa,bb<br /> ?????????????£?<br /> <table height="65" cellspacing="1" cellpadding="0" width="174" align="center" border="1"> <tbody> <tr> <td>id</td> <td>aa</td> <td>bb</td> </tr> <tr> <td>1</td> <td>werwe</td> <td>rewrwe</td> </tr> <tr> <td>2</td> <td>werwe</td> <td>rewrwe</td> </tr> </tbody> </table> </p> <p>????????????????????????????????????????????????????&lt;columns&gt;&lt;/columns&gt;?м???</p> <p>????????У?????????????????е???λ???????????</p> <p>&lt;asp:BoundColumn DataField=&quot;?????????????&quot;&gt;<br /> ?????????????bb,aa??????????????????д</p> <p>&lt;asp:DataGrid <br /> id=&quot;dgrdMain&quot; <br /> cellpadding=&quot;1&quot; <br /> showheader=&quot;true&quot; <br /> autogeneratecolumns=&quot;false&quot;<br /> borderwidth=&quot;0&quot;<br /> runat=&quot;server&quot;&gt;<br /> &lt;columns&gt;<br /> &lt;asp:boundcolumn datafield=&quot;bb&quot;/&gt;<br /> &lt;asp:boundcolumn datafield=&quot;bb&quot;/&gt;<br /> &lt;/columns&gt;<br /> &lt;/asp:datagrid&gt;</p> <p>????????autogeneratecolumns=&quot;false&quot;???DATAGRID????????????????????</p> <p>??????????У??????????????????????????</p> <p>&lt;asp:TemplateColumn&gt;<br /> &lt;itemTemplate&gt;<br /> ?м???????????????????????<br /> &lt;/itemTemplate&gt;<br /> &lt;/asp:DataGrid&gt; <br /> ????????????????????????????????????&lt;%# DataBinder.Eval(Container.DataItem,&quot;?????&quot;).ToString()%&gt;<br /> ???濴???????????????????????aa,bb??????η????????????????????????????????</p> <p> <table height="65" cellspacing="1" cellpadding="0" width="89" align="center" border="1"> <tbody> <tr> <td>1</td> <td>werwe<br /> rewrwe</td> </tr> <tr> <td>2</td> <td>werwe<br /> rewrwe</td> </tr> </tbody> </table> </p> <p>????????д???? <br /> &lt;asp:DataGrid <br /> id=&quot;dgrdMain&quot; <br /> cellpadding=&quot;1&quot; <br /> showheader=&quot;false&quot; <br /> autogeneratecolumns=&quot;false&quot;<br /> borderwidth=&quot;0&quot;<br /> runat=&quot;server&quot;&gt;<br /> &lt;columns&gt;<br /> &lt;asp:boundcolumn datafield=&quot;ii&quot;/&gt; ????????????????????ID<br /> &lt;asp:TemplateColumn&gt; ???????????????????У???AA,BB????????<br /> &lt;itemTemplate&gt;<br /> &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot;&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;&lt;%# Container.DataItem(&quot;aa&quot;)%&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;&lt;%# Container.DataItem(&quot;bb&quot;)%&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;/table&gt; <br /> &lt;/itemTemplate&gt;<br /> &lt;/asp:DataGrid&gt; <br /> &lt;/columns&gt;<br /> &lt;/asp:datagrid&gt;</p> <p>???????????????????????????DATAGRID??????????</p> [.Net???]??????ASP.net??????? http://www.haxv.top//tech/683.html ??????? .Net??? 2010/1/10 18:49:46 <p>????????????????????</p> <p>?????????ASP?в???????????????????????SQL??????EXECUTE()????????????RECORDSET??NEW??DELETE??UPDATE??????????????????????ASP.NET???????????SQL??????COMMAND?????????SQL???????????????????????????????????????????????????????????ExecuteReader()????ExecuteNonQuery()?????????????????????????<br /> string strConnection=&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;;<br /> strConnection+=Server.MapPath(strDb);<br /> OleDbConnection objConnection=new OleDbConnection(strConnection);<br /> OleDbCommand objCommand = new OleDbCommand(&quot;??????SQL???&quot; , objConnection); <br /> objConnection.Open();<br /> OleDbDataReader objDataReader=objCommand.ExecuteNonQuery();</p> <p>-----------------------<br /> dim objConnection as OleDbConnection<br /> dim objCommand as OleDbCommand<br /> objConnection=new OleDbConnection(Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;+Server.MapPath(strDb))<br /> objCommand=new OleDbCommand(&quot;??????SQL???&quot; , objConnection) <br /> objConnection.Open()<br /> objDataReader=objCommand.ExecuteNoQuery()</p> <p>?????????????????SQL???ACCESS????</p> <p>??????? insert int <br /> o ???? (???1?????2) values (?????1???????2) where ????<br /> ???????? delete from ???? where ????<br /> ??????? update ???? set???1=&times;&times;?????2=&times;&times; where ????</p> <p>??????????????Sql Server????????delete ??????????????from???</p> <p>????????????????????ASP.NET????????????DATAGRID??</p> [.Net???]??????ASP.net??????? http://www.haxv.top//tech/682.html ??????? .Net??? 2010/1/10 18:48:48 <p>????????????????</p> <p>?е????????????C#????ASP.NET???滹?????VB.NET?????????????????????ü???????μ???????????????ж??????μ???????C#??????????????????????Сд???????????????????VB.NET?????????????????ASP????????????????????RECORDSET???????HTML???????洩??&lt;%= %&gt;???????????????ASP.NET?????????????????????????????????????????????????????????????????????????????????????????????????????DATAREADER??????????????LABEL?????Text???????????????????????????????DATAGRID??</p> <p>???????????????DATAREADER??</p> <p>string strConnection=&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;;<br /> strConnection+=Server.MapPath(strDb);<br /> OleDbConnection objConnection=new OleDbConnection(strConnection);<br /> OleDbCommand objCommand = new OleDbCommand(&quot;??????SQL???&quot; , objConnection); <br /> objConnection.Open();<br /> OleDbDataReader objDataReader=objCommand.ExecuteReader();<br /> if(objDataReader.Read())<br /> {<br /> oicq.Text=Convert.ToString(objDataReader[&quot;useroicq&quot;]);<br /> homesite.Text=Convert.ToString(objDataReader[&quot;usersite&quot;]);<br /> face.SelectedItem.Text=Convert.ToString(objDataReader[&quot;userface&quot;]);<br /> }</p> <p>??????????????????????????????????????select?????????????????OleDbCommand????????????????????OleDbDataReader?????????????????ExecuteReader()??objDataReader.Read()????????????????????????????Text?????????????????????????????????????????????????????С?<br /> &nbsp;</p> <p>????????????????</p> <p>???????????Convert.ToString()<br /> ?????????Convert.ToInt64()??Convert.ToInt32()??Convert.ToInt16() ?????????λ?????????<br /> ?????????Convert.ToDateTime()</p> <p>------------------</p> <p>dim objConnection as OleDbConnection<br /> dim objCommand as OleDbCommand<br /> dim objDataReader as OleDbDataReader<br /> objConnection=new OleDbConnection(Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;+Server.MapPath(strDb))<br /> objCommand=new OleDbCommand(&quot;??????SQL???&quot; , objConnection) <br /> objConnection.Open()<br /> objDataReader=objCommand.ExecuteReader()<br /> if objDataReader.Read()<br /> oicq.Text=Convert.ToString(objDataReader[&quot;useroicq&quot;])<br /> homesite.Text=Convert.ToString(objDataReader[&quot;usersite&quot;])<br /> face.SelectedItem.Text=Convert.ToString(objDataReader[&quot;userface&quot;])<br /> end if</p> <p>???????????C#??VB????????????C#??????????????????????C#??????VB????????????????</p> <p>???????????????????SQL??????????????????</p> <p>1??????????<br /> &lt;%@Import Namespace=&quot;System.Data&quot;%&gt;<br /> &lt;%@Import Namespace=&quot;System.Data.OleDb&quot;%&gt;<br /> ????<br /> &lt;%@Import Namespace=&quot;System.Data&quot;%&gt;<br /> &lt;%@Import Namespace=&quot;System.Data.SqlClient&quot;%&gt;</p> <p>2????????????????????????OleDb&times;&times;???Sql&times;&times;???????<br /> ?????????????滻?????????????????????????г?Sql Server????????</p> <p>????????????????????????????????????</p> [.Net???]??????ASP.net??????? http://www.haxv.top//tech/681.html ??????? .Net??? 2010/1/10 18:47:09 <p>??????????????????????</p> <p>????ASP???????????????????????ACCESS??SQL SERVER??????ASP.NET????????ASP.NET????SQL SERVER??????????????????????OLE DB??</p> <p>????????ACCESS???????????????</p> <p>string strConnection=&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;;<br /> strConnection+=Server.MapPath(&quot;*.mdb&quot;); //*??????????????<br /> OleDbConnection objConnection=new OleDbConnection(strConnection);<br /> objConnection.Open(); <br /> --------<br /> dim objConnection as OleDbConnection<br /> objConnection=new OleDbConnection(&quot;Provider=Microsoft.Jet.OleDb.4.0;Data Source=&quot;+Server.MapPath(&quot;*.mdb&quot;)) <br /> objConnection.Open()</p> <p>??????????SQL SERVER???????????????</p> <p>stringstrConnection=&quot;server=?????????;uid=?????;pwd=????;database=?????????&quot;;<br /> SqlConnediob objConnection=new SqlCOnnection(strConnection);<br /> objConnection.Open();<br /> -----------<br /> dim objConnection as SqlConnectiom&lt; br&gt; objConnection=newSqlConnection(&quot;server=?????????;uid=?????;pwd=????;database=?????????&quot;) <br /> objConnection.Open()</p> <p>???????????????SQL SERVER??ACCESS????????????????????????????????SQL&times;&times;??OLEDB&times;&times;??????</p> <p>?????????ACCESS?????????ASPX?????????????????????</p> <p>&lt;%@Import Namespace=&quot;System.Data&quot;%&gt;<br /> &lt;%@Import Namespace=&quot;System.Data.OleDb&quot;%&gt;<br /> ?????SQL SERVER????????????????<br /> &lt;%@Import Namespace=&quot;System.Data&quot;%&gt;<br /> &lt;%@Import Namespace=&quot;System.Data.SqlClient&quot;%&gt;</p> <p>?????????????????????????????</p> [.Net???]??????ASP.net??????? http://www.haxv.top//tech/680.html ??????? .Net??? 2010/1/10 18:44:47 <p>??????????WEB????????(??)</p> <p>?????????????????????????????????ASP.NET?????????????????????????????????к????????????д????????????????????????????????????????????????????????????????????????к???飬????ASP??ASP.NET???????????????????????????????????????????????????????ASP??ASP.NET???????????????????????????????????????????????????????????????д?????????????????????????????????????</p> <p>?????????±???????????????????????????????????????JAVASCRIPT??????????????????????????????????????????????????Σ?????????????????????????????ü?????????????????鷳?????顣????????ASP.NET?????????????????????????????????黹???????????飬??????????????????????????????</p> <p>????????????????????д???????????<br /> &lt;asp:textbox id=&quot;username&quot; runat=&quot;server&quot; cssclass=&quot;textbox&quot;/&gt; <br /> &lt;asp:requiredfieldvalidator controltovalidate=&quot;username&quot; display=&quot;dynamic&quot; forecolor=&quot;#ff0000&quot; font-name=&quot;????&quot; font-size=&quot;9pt&quot; text=&quot;????д&quot; runat=&quot;server&quot;/&gt; <br /> controltovalidate????????????????ID?????????2????????????????????????????????display=&quot;dynamic&quot; ???????????????????????????? forecolor=&quot;#ff0000&quot; font-name=&quot;????&quot; font-size=&quot;9pt&quot; ?????趨????????????????????壬??С???text=&quot;????д&quot; ??????????д??????????????????????????????runat=&quot;server&quot;??????????????????????textbox????棬?????????????textbox??????????????????????????</p> <p>?????±??????????????????????????????????<br /> &lt;asp:textbox id=&quot;password1&quot; runat=&quot;server&quot; textmode=&quot;password&quot; cssclass=&quot;textbox&quot;/&gt;</p> <p>&lt;asp:requiredfieldvalidator controltovalidate=&quot;password1&quot; display=&quot;dynamic&quot; forecolor=&quot;#ff0000&quot; font-name=&quot;????&quot; font-size=&quot;9pt&quot; text=&quot;????д&quot; runat=&quot;server&quot;/&gt; <br /> ??????????????????д???????<br /> ????????????????????????????????д??Σ?<br /> &lt;asp:textbox id=&quot;password2&quot; runat=&quot;server&quot; textmode=&quot;password&quot; cssclass=&quot;textbox&quot;/&gt; <br /> &lt;asp:requiredfieldvalidator controltovalidate=&quot;password2&quot; display=&quot;dynamic&quot; forecolor=&quot;#ff0000&quot; font-name=&quot;????&quot; font-size=&quot;9pt&quot; text=&quot;????д&quot; runat=&quot;server&quot;/&gt; <br /> &lt;asp:comparevalidator controltovalidate=&quot;password2&quot; controltocompare=&quot;password1&quot; display=&quot;dynamic&quot; operator=&quot;equal&quot; forecolor=&quot;#ff0000&quot; font-name=&quot;????&quot; font-size=&quot;9pt&quot; text=&quot;??????&quot; runat=&quot;server&quot;/&gt; <br /> controltocompare=&quot;password1&quot; ???????????????operator=&quot;equal&quot; ?????趨????????????????????NotEqual???????,LessThan??????,GreaterThan???????????????????????????????????????????</p> <p>??????BUTTON???CausesValidation=true/false?????e??????????????????????????????????????????CausesValidation=true??????°???????????????????????????????顣</p> <p>???????????</p> <p>?????????????????????????????????????????username.Visible=false;??????????????username????????о??????????????CSS????????д??cssclass=&quot;&quot;???????????HTML?е?class=&quot;&quot;??</p> <p>????????WEB????????????&lt;form runat=&quot;server&quot;&gt;&lt;/form&gt;?У???????????</p> <p>???????????????????????濴???′ο??????ADO.NET???</p> [.Net???]??????ASP.net??????? http://www.haxv.top//tech/679.html ??????? .Net??? 2010/1/10 18:41:00 <p>????????????????WEB?????WEB???????VB??????????????????κε??????????????????????????????????????????????£?????????????HTML??????????????????????????????????????????????????&lt;%= %&gt;?????????HTML?????????????飬???????????????????????</p> <p>??????????????????????????????????????????????????????????????????????????????????????????????????趨???????????????????????HTML????????????????????????????????????????????????????????????WEB????????</p> <p>?????????????????</p> <p>???Label?????</p> <p>????????</p> <p>Text ?????????????<br /> ??????&lt;asp:Label id=&quot;lblMessage&quot; Text=&quot;aaa&quot; runat=&quot;server&quot;/&gt;<br /> ???????????????????runat=&quot;server&quot;?????????????е?WEB????????????&lt;form runat=&quot;server&quot;&gt;&lt;/form&gt;?м?<br /> ???濴??????????????????????????Label??Text????????????????????</p> <p>&lt;script runat=&quot;server&quot; language=&quot;c#&quot;&gt;<br /> void Page_Load()<br /> {<br /> lblMessage.Text=&quot;Hello World!&quot;;<br /> }<br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;&lt;title&gt;Label.aspx&lt;/title&gt;&lt;/head&gt; <br /> &lt;body&gt;<br /> &lt;form runat=&quot;server&quot;&gt;<br /> &lt;asp:Label id=&quot;lblMessage&quot; runat=&quot;server&quot;/&gt;<br /> &lt;/form&gt;<br /> &lt;/body&gt;&lt;/html&gt;</p> <p>--------------</p> <p>&lt;script runat=&quot;server&quot; language=&quot;vb&quot;&gt;<br /> sub Page_Load<br /> lblMessage.Text=&quot;Hello World!&quot;<br /> end sub<br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;&lt;title&gt;Label.aspx&lt;/title&gt;&lt;/head&gt; <br /> &lt;body&gt;<br /> &lt;form runat=&quot;server&quot;&gt;<br /> &lt;asp:Label id=&quot;lblMessage&quot; runat=&quot;server&quot;/&gt;<br /> &lt;/form&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>????TextBox?????</p> <p>????????</p> <p>Text ?????????????<br /> MaxLength ??????????????????????????????????Ч????<br /> ReadOnly ?????<br /> TextMode ?????漸????Ч? MultiLine,Password,SingleLine??<br /> Rows ??????????????</p> <p>????Button?????</p> <p>???????Button ????????????ImageButton ??????????????LinkButton ????????????????Button<br /> Button?????????Text?????????e????????????<br /> ImageButton?????????ImageUrl?????e????????????AlternativeText ?????????????????????????????<br /> LinkButton?????????Text?????????e??????????</p> <p>???????????????????CausesValidation=true/false?????e?????????????????饗???潫???????????<br /> ???????????????????OnClick????????????????????????????????????</p> <p>&lt;script runat=&quot;server&quot; language=&quot;c#&quot;&gt;<br /> void btnCounter_OnClick(object sender,EventArgs e)<br /> {<br /> btnCounter.Text=&quot;Clicked&quot;;<br /> } <br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;&lt;title&gt;Label.aspx&lt;/title&gt;&lt;/head&gt; <br /> &lt;body&gt;<br /> &lt;form runat=&quot;server&quot;&gt;<br /> &lt;asp:Button Text=&quot;UnClicked&quot; OnClick=&quot;btnCounter_OnClick&quot; id=&quot;btnCounter&quot; runat=&quot;server&quot;/&gt;<br /> &lt;/form&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>---------------------<br /> &lt;script runat=&quot;server&quot; language=&quot;vb&quot;&gt;<br /> sub btn_COunter_OnClick(s as object,e as eventargs)<br /> btnCounter.Text=&quot;Clicked&quot; <br /> end sub<br /> &lt;/script&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;&lt;title&gt;Label.aspx&lt;/title&gt;&lt;/head&gt; <br /> &lt;body&gt;<br /> &lt;form runat=&quot;server&quot;&gt;<br /> &lt;asp:Button Text=&quot;UnClicked&quot; OnClick=&quot;btnCounter_OnClick&quot; id=&quot;btnCounter&quot; runat=&quot;server&quot;/&gt;<br /> &lt;/form&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;</p> <p>??????????????????????????</p> [.Net???]??????ASP.net?????? http://www.haxv.top//tech/678.html ??????? .Net??? 2010/1/10 18:39:03 <p>????????????</p> <p>string strExample; ?????(&quot;aaa&quot;)<br /> char chrExample; ???('a')<br /> bool blnExample; Bool??(true/false)<br /> DataTime datExample; ??????(&quot;09/19/2002&quot;)<br /> int intExample; ????(32λ?з???????)<br /> double dblExample; ??????(64λ??????????)</p> <p>????????????</p> <p>= ??????? <br /> + ???????<br /> - ????????<br /> * ???????<br /> / ????????<br /> % ??????<br /> &amp;&amp; ???And<br /> || ???Or<br /> ! ???Not</p> <p>???????????</p> <p>if(????)<br /> {<br /> }<br /> &nbsp;</p> <p>else<br /> {<br /> }</p> <p>switch(????)<br /> {<br /> case option1:<br /> break;<br /> case option2:<br /> break;<br /> }</p> <p>for(inti=1;i&lt;=10;i++)//????????????????<br /> {<br /> }</p> <p>while(????)<br /> {<br /> }</p> <p>do<br /> {<br /> }while(????);</p> <p>??????????</p> <p>1???????VB????????????????β?????<br /> 2???????VB?????????????????????????????C#?????????????????<br /> 3?????????????????????????????Response.Write &quot;aa&quot;;?????????</p> <p>????????????????????????????????????????????????????????????????????????????п?????????C#???????ú??о????C#???????μ??????????ɡ?????????????????????WEB?????</p> [.Net???]??????asp.net?????? http://www.haxv.top//tech/677.html ??????? .Net??? 2010/1/10 18:34:04 <p>?????ASP.NET??ASP????????????????????????????????Ч???к????????????????????????н?????????д????????????????????????????ASP???棬?????????????VB???????????????SQL??ACCESS??</p> <p>??ASP.NET???棬???????????????????????????????C#???????????????????.NET????????????????ASP.NET????????????VB+ACCESS??VB+SQL??C#+ACCESS??C#+SQL???????????C#+ACCESS???????????д???????ASP.NET??????????????</p> <p>??????ASP.NET??????κ?ASP?????????????????????ASP?????????????????????ASP?????????????????????ASP????????д???????????????????????????HTML?????????SQL???????????????????????????????????Щ???????????</p> <p>??????????????????????????</p> <p>??????????????????</p> <p>????????????????????2000???????????????????????????????????????????????????????</p> <p>??????????????MDAC(???2.7?????汾????)???????????????????????????Ρ?</p> <p>????????????.NET FRAMEWORK SDK??????????????????????????????????????????????????????????????????????????INTERNET???????????????????ASP????????????????????????????????EXAMPLE1.ASPX??????ü??±???????????????????</p> <p>&lt;script language=&quot;c#&quot; runat=&quot;server&quot;&gt;<br /> void Page_Load()<br /> {<br /> Response.Write(&quot;Hello World!&quot;);<br /> }<br /> &lt;/script&gt;</p> <p>-------------------</p> <p>&lt;script language=&quot;vb&quot; runat=&quot;server&quot;&gt;<br /> sub page_load()<br /> response.write(&quot;Hello World!&quot;)<br /> end sub<br /> &lt;/script&gt;</p> <p>???????????????????</p> <p>????????????????1?????????????????A??B???????C#??VBд??????????????C#???????????????????????????д??????&lt;hr&gt;?????????????????2????д???????????????±?????дAPS.NET??????????VS.NET????д???????????ü??±?????????????????????????</p> <p>????????????????????C#?????????</p> [Asp???]ASP????Excel???????? http://www.haxv.top//tech/676.html ??????? Asp??? 2010/1/10 18:31:55 <p>?????????????????????excel??????????????????????????ASP????Excel?????????????У????????£?</p> <p>???У?list.xls?excel??????????Sheet1???????????</p> <p>&lt;%<br /> &nbsp;&nbsp;&nbsp; Dim conn<br /> &nbsp;&nbsp;&nbsp; Dim StrConn<br /> &nbsp;&nbsp;&nbsp; Dim rs<br /> &nbsp;&nbsp;&nbsp; Dim Sql<br /> &nbsp;&nbsp;&nbsp; Set conn=Server.CreateObject(&quot;ADODB.Connection&quot;) <br /> &nbsp;&nbsp;&nbsp; StrConn=&quot;Driver={Microsoft Excel Driver (*.xls)};DBQ=&quot;&amp; Server.MapPath(&quot;list.xls&quot;)<br /> &nbsp;&nbsp;&nbsp; conn.Open StrConn<br /> &nbsp;&nbsp;&nbsp; Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;) <br /> &nbsp;&nbsp;&nbsp; Sql=&quot;select * from [Sheet1$]&quot;<br /> &nbsp;&nbsp;&nbsp; rs.Open Sql,conn,2,2 <br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;center&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; for i=0 to rs.Fields.Count-1<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td width=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td height=&quot;28&quot; bgcolor=&quot;#0099FF&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;%=rs(i).Name%&gt;&lt;/div&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; next<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td width=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; do while Not rs.EOF<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; for i=0 to rs.Fields.Count-1<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td width=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td height=&quot;28&quot; valign=&quot;bottom&quot;&gt;&lt;%=rs(i)%&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; next<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td width=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;% <br /> &nbsp;&nbsp;&nbsp; for i=0 to rs.Fields.Count-1<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td height=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td height=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; next<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;td width=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;&lt;/td&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;%<br /> &nbsp;&nbsp;&nbsp; rs.MoveNext<br /> &nbsp;&nbsp;&nbsp; Loop<br /> &nbsp;&nbsp;&nbsp; rs.close<br /> &nbsp;&nbsp;&nbsp; set rs=nothing<br /> &nbsp;&nbsp;&nbsp; Conn.close<br /> &nbsp;&nbsp;&nbsp; set StrConn=nothing<br /> &nbsp;&nbsp;&nbsp; %&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/table&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/center&gt;</p> [Asp???]ASP?е???÷??????????? http://www.haxv.top//tech/675.html ??????? Asp??? 2010/1/10 18:29:48 <p>??дASP??????????????:</p> <p>?????????????: <br /> &nbsp;????<br /> &lt;% =now %&gt;</p> <p>??????CPU???: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;HTTP_UA_CPU&quot;)%&gt;</p> <p>????????: <br /> &nbsp;????<br /> &lt;% =Request.ServerVariables(&quot;HTTP_UA_PIXELS&quot;)%&gt;</p> <p>????????:[qoute]&lt;%=Request.ServerVariables(&quot;HTTP_UA_COLOR&quot;)%&gt;[/quote] <br /> Server???: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;SERVER_NAME&quot;)%&gt;</p> <p>??????????????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;HTTP_ACCEPT_LANGUAGE&quot;)%&gt;</p> <p>??????I:P <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;REMOTE_ADDR&quot;)%&gt;</p> <p>????????????汾????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;HTTP_USER_AGENT&quot;)%&gt;</p> <p>??????????????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;HTTP_ACCEPT&quot;)%&gt;</p> <p>WEB????????????汾???: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;SERVER_SOFTWARE&quot;)%&gt;</p> <p>·????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;REMOTE_PORT&quot;)%&gt;</p> <p>??????http???: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;LOCAL_PORT&quot;)%&gt;</p> <p>WEB??????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;APPL_PHYSICAL_PATH&quot;)%&gt;</p> <p>???WEB?λ??: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;PATH_TRANSLATED&quot;)%&gt;</p> <p>?????: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;REQUEST_METHOD&quot;)%&gt;</p> <p>????Э??: <br /> &nbsp;????<br /> &lt;%=Request.ServerVariables(&quot;SERVER_PROTOCOL&quot;)%&gt;</p> [Asp???]?????????????????? http://www.haxv.top//tech/674.html ??????? Asp??? 2010/1/10 18:27:54 <p>??? ?? <br /> &lt;% Response.Buffer = True %&gt; <br /> &lt;% <br /> ' Setup the variables necessary to accomplish the task <br /> Dim TimerStart, TimerEnd, TimerNow, TimerWait <br /> ' How many seconds do you want them to wait... <br /> TimerWait = 5 <br /> ' Setup and start the timers <br /> TimerNow = Timer <br /> TimerStart = TimerNow <br /> TimerEnd = TimerStart + TimerWait <br /> ' Keep it in a loop for the desired length of time <br /> Do While (TimerNow &lt; TimerEnd) <br /> ' Determine the current and elapsed time <br /> TimerNow = Timer <br /> If (TimerNow &lt; TimerStart) Then <br /> TimerNow = TimerNow + 86400 <br /> End If <br /> Loop <br /> ' Okay times up, lets git em outa here <br /> Response.Redirect &quot;nextpage.html&quot; %&gt; <br /> <br /> ???? <br /> <br /> &lt;% <br /> Sub TimeDelaySeconds(DelaySeconds) <br /> SecCount = 0 <br /> Sec2 = 0 <br /> While SecCount &lt; DelaySeconds + 1 <br /> Sec1 = Second(Time()) <br /> If Sec1 &lt;&gt; Sec2 Then <br /> Sec2 = Second(Time()) <br /> SecCount = SecCount + 1 <br /> End If <br /> Wend <br /> End Sub <br /> %&gt; <br /> <br /> ' To change delay adjust here <br /> &lt;% TimeDelaySeconds(2) %&gt;</p> [PHP???]??php???????????????????????? http://www.haxv.top//tech/295.html Downcc???? PHP??? 2009/9/14 11:55:39 <p>????????????????php?????????????????????????????????????????????????????????????asp??asp.net?????????ο?.</p> <p>????? Lc. ??????????е??????????????????????磬????????????????????Godaddy?????FTP.</p> <p>??????????????????????????????godaddy????????????????????????????????400????.????????</p> <p>?????????????????????????????php?????????????????????????????????????????????????????url????????????μ????????.</p> <p>??????????????????????????????????????????php??????????????ú????.</p> <p> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td bgcolor="#ddedfb">&nbsp;&lt;form method=&quot;post&quot;&gt;<br /> &lt;input name=&quot;url&quot; size=&quot;50&quot; /&gt;<br /> &lt;input name=&quot;submit&quot; type=&quot;submit&quot; /&gt;<br /> &lt;/form&gt;<br /> &lt; ?php<br /> // maximum execution time in seconds<br /> set_time_limit (24 * 60 * 60);<br /> if (!isset($_POST['submit'])) die();<br /> // folder to save downloaded files to. must end with slash<br /> $destination_folder = 'temp/';<br /> &nbsp;<br /> $url = $_POST['url'];<br /> $newfname = $destination_folder . basename($url);<br /> $file = fopen ($url, &quot;rb&quot;);<br /> if ($file) {<br /> $newf = fopen ($newfname, &quot;wb&quot;);<br /> if ($newf)<br /> while(!feof($file)) {<br /> fwrite($newf, fread($file, 1024 * 8 ), 1024 * 8 );<br /> }<br /> }<br /> if ($file) {<br /> fclose($file);<br /> }<br /> if ($newf) {<br /> fclose($newf);<br /> }<br /> ?&gt;</td> </tr> </tbody> </table> </p> <p>????????????asp?汾?????(δ????)</p> <p> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td bgcolor="#ddedfb">&lt; % <br /> function&nbsp;&nbsp; downfilea(d_target,&nbsp;&nbsp; s_target) <br /> On&nbsp;&nbsp; Error&nbsp;&nbsp; Resume&nbsp;&nbsp; Next&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; dim&nbsp;&nbsp; myhttp,&nbsp;&nbsp; objstream <br /> &nbsp;&nbsp;&nbsp; set&nbsp;&nbsp; myhttp&nbsp;&nbsp; =&nbsp;&nbsp; server.createobject( &quot;MSXML2.XMLHTTP &quot;) <br /> &nbsp;&nbsp;&nbsp; myhttp.open&nbsp;&nbsp; &quot;GET &quot;,&nbsp;&nbsp; d_target,&nbsp;&nbsp; false <br /> &nbsp;&nbsp;&nbsp; myhttp.send() <br /> &nbsp;&nbsp;&nbsp; set&nbsp;&nbsp; objstream&nbsp;&nbsp; =&nbsp;&nbsp; Server.CreateObject( &quot;adodb.stream &quot;)&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; objstream.Type&nbsp;&nbsp; =&nbsp;&nbsp; 1&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; objstream.Mode&nbsp;&nbsp; =&nbsp;&nbsp; 3&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; objstream.Open <br /> &nbsp;&nbsp;&nbsp; objstream.Write&nbsp;&nbsp; myhttp.responseBody <br /> &nbsp;&nbsp;&nbsp; objstream.SaveToFile&nbsp;&nbsp; s_target,&nbsp;&nbsp; 2 <br /> &nbsp;&nbsp;&nbsp; if&nbsp;&nbsp; err.number&nbsp;&nbsp; &lt;&gt;&nbsp;&nbsp; 0&nbsp;&nbsp; then&nbsp;&nbsp; err.Clear <br /> end&nbsp;&nbsp; function <br /> &nbsp;<br /> downfilea&nbsp;&nbsp; &quot;http://www.abc.com/xxx.rar &quot;,&nbsp;&nbsp; Server.MapPath( &quot;down/xxx.rar &quot;) <br /> Response.write&nbsp;&nbsp; &quot;ok &quot; <br /> %&gt; <p>????asp.net?汾?????δ?????</p> <p>&nbsp;&nbsp; using&nbsp;&nbsp; System;&nbsp;&nbsp; <br /> &nbsp; using&nbsp;&nbsp; System.Net;&nbsp;&nbsp; <br /> &nbsp; using&nbsp;&nbsp; System.IO;&nbsp;&nbsp; <br /> &nbsp;<br /> &nbsp; class&nbsp;&nbsp; DownloadFile;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static&nbsp;&nbsp; void&nbsp;&nbsp; Main(string[]&nbsp;&nbsp; args)&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //?????????&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string&nbsp;&nbsp; siteURL=&quot;http://www.abc.com/xxx.rar&quot;;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //??????????·?????????&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string&nbsp;&nbsp; fileName=&quot;c:\\xxx.rar&quot;;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //????????WebClient&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WebClient&nbsp;&nbsp; client=new&nbsp;&nbsp; WebClient();&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //????WebClient??DownloadFile????&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.DownloadFile(siteURL,fileName);&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> </td> </tr> </tbody> </table> </p> <p>???????</p> <p>1.????????????????????????????.????temp/??down/.</p> <p>2.????php?汾???????????????url?????asp??asp.net?汾?????????????.</p> <p>3.??????????????????????????.??????????????????????????????.</p> <p>????Blinux???????300M?????????????????????????????28??.???????????????.</p> <p>?????????????????Ч??.</p> [.Net???]????ajax.dll????asp.net ajax???? http://www.haxv.top//tech/289.html ??????? .Net??? 2009/9/10 19:10:47 <p>Asynchronous JavaScript and XML??AJAX???????????????????鸚??Google??Google Suggest??Google Maps?е???á???ASP.NET?????AJAX??????????????з????????????????????????????????з???????????????????仰????????????????????????????????????????AJAX???????Щ?????????????м????????????Щ???????????????AJAX?????????????????</p> <p>????Michael Schwarz??AJAX .NET????????????ASP.NET??????????????????????????????AJAX???????檔??????????????????????????????Σ???????????????</p> <p>??????ι?????&mdash;&mdash;????</p> <p>AJAX?????????broker?????????????????????????????.NET??????????????XmlHttpRequest??????????????????XmlHttpRequest??????????????????????????????????????XmlHttpRequest??????????????????????????<br /> ??????????????.NET????????AJAX??????????????????AJAX??????????JavaScript????????Щ?????????κ?JavaScript????????????????????????????XmlHttpRequest???á???Щ??????????????????????</p> <p>????????????????????????????????????????.NET??????</p> <p>ublic int Add(int firstNumber, int secondNumber)<br /> {<br /> return firstNumber + secondNumber; <br /> }</p> <p>AJAX .NET?????????????????&ldquo;Add&rdquo;????????????????JavaScript?????????JavaScript???????????????ú???????????????????????????????????????</p> <p>???????</p> <p>???????????&ldquo;???&rdquo;?????????.dll????衣????????????????.dll??????????????????????</p> <p>????????????е?????????????μ?AJAX?汾?????????????????ajax.dll??????????????????С???Visual Studio.NET???л?Solution Explorer??&ldquo;References???????&rdquo;??????Add Reference??????????????????????У?????Browse????????????ref/ajax.dll????????ε???Open????????Ok???????????????????AJAX .NET???????????</p> <p>????HttpHandler</p> <p>????????????????????????web.config?????e??????HttpHandler??????????????HttpHandlers??????????ι?????????????????????ASP.NET?????????????磬????*.aspx?????????<br /> System.Web.UI.PageHandlerFactory????????????????????ж?ajax/*.ashx????????Ajax.PageHandlerFactory?????</p> <p>??configuration&gt;<br /> ??system.web&gt;<br /> ??httpHandlers&gt;<br /> ??add verb=&quot;POST,GET&quot; path=&quot;ajax/*.ashx&quot;<br /> type=&quot;Ajax.PageHandlerFactory, Ajax&quot; /&gt;<br /> ??/httpHandlers&gt;</p> <p>??system.web&gt;<br /> ??/configuration&gt;</p> <p>??????????????????ASP.NET???????·????ajax/*.ashx???????κ???????Ajax.PageHandlerFactory?????????????????????????????????ajax???????????????????????????????HttpHandlers???????????????????????.ashx?????</p> <p>???????</p> <p>???????????????????????????????????????е???棬??file???????У??Page_Load?????????′???</p> <p>public class Index : System.Web.UI.Page{<br /> private void Page_Load(object sender, EventArgs e){<br /> Ajax.Utility.RegisterTypeForAjax(typeof(Index)); <br /> // <br /> }<br /> // <br /> }</p> <p><br /> ????RegisterTypeForAjax??????????????????JavaScript???????????????????????????д?????</p> <p>??script language=&quot;javascript&quot; src=&quot;ajax/common.ashx&quot;&gt;??/script&gt;<br /> ??script language=&quot;javascript&quot; <br /> src=&quot;ajax/Namespace.PageClass,AssemblyName.ashx&quot;&gt;??/script&gt;</p> <p>?????????е???????</p> <p>Namespace.PageClass&mdash;&mdash;?????????????????????@Page?????Inherits????????</p> <p>AssemblyName&mdash;&mdash;?????????????????????????????????? <br /> ??????AjaxPlay?????sample.aspx???????????</p> <p>??%@ Page Inherits=&quot;AjaxPlay.Sample&quot; Codebehind=&quot;sample.aspx.cs&quot; %&gt;<br /> ??html&gt;<br /> ??head&gt;<br /> ??script language=&quot;javascript&quot; src=&quot;ajax/common.ashx&quot;&gt;??/script&gt;<br /> ??script language=&quot;javascript&quot;<br /> src=&quot;ajax/AjaxPlay.Sample,AjaxPlay.ashx&quot;&gt;??/script&gt;<br /> ??/head&gt;<br /> ??body&gt; <br /> ??form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;&gt;</p> <p>??/form&gt; <br /> ??/body&gt;<br /> ??/html&gt;</p> <p>??????????????????????src·??????????????????·??????????????????????????·????????Щ??????????????????????????′?????????????????????ASP.NET???????????Щ???????????</p> <p>???????HttpHandlers??ι???????????????????????????web.config???????????????ж?ajax/*.ashx??????????????????????????????????????????????????????????????</p> <p>???????????????</p> <p>????????????????????????????????????????????????????????е??????????????????????????????????μ?汾?????????????ü???ServerSideAdd?????ɡ???file???????У????????????д???</p> <p>[Ajax.AjaxMethod()]<br /> public int ServerSideAdd(int firstNumber, int secondNumber)<br /> {<br /> return firstNumber + secondNumber; <br /> }</p> <p>??????Щ????????Ajax.AjaxMethod??????????????????????Щ????????javaScript????????????????á?</p> <p>????????</p> <p>??????????JavaScript????ú?????AJAX?????????????????????????JavaScript????Sample.ServerSideAdd??????????????????????????÷??????????????????</p> <p>??%@ Page Inherits=&quot;AjaxPlay.Sample&quot; Codebehind=&quot;sample.aspx.cs&quot; %&gt;<br /> ??html&gt;<br /> ??head&gt;<br /> ??script language=&quot;javascript&quot; src=&quot;ajax/common.ashx&quot;&gt;??/script&gt;<br /> ??script language=&quot;javascript&quot; <br /> src=&quot;ajax/AjaxPlay.Sample,AjaxPlay.ashx&quot;&gt;??/script&gt;<br /> ??/head&gt;<br /> ??body&gt; <br /> ??form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;&gt;<br /> ??script language=&quot;javascript&quot;&gt;<br /> var response = Sample.ServerSideAdd(100,99); <br /> alert(response.value); <br /> ??/script&gt;<br /> ??/form&gt; <br /> ??/body&gt;<br /> ??/html&gt;</p> <p>??????????????????????????????????????????????????п??????????JavaScript Sample.ServerSideAd???????????????????????????????????????????????????????????</p> <p>Sample.ServerSideAdd(100,99, ServerSideAdd_CallBack);</p> <p>function ServerSideAdd_CallBack(response){<br /> if (response.error != null){<br /> alert(response.error); <br /> return; <br /> }<br /> alert(response.value); <br /> }</p> <p><br /> ???????????п????????????????????????????ServerSideAdd_CallBack??????μ?????????????????????????????????????????????????????????????????????????????????</p> <p>Value&mdash;&mdash;?????????????????????????????????????????????????????</p> <p>Error&mdash;&mdash;?????????????е????</p> <p>Request&mdash;&mdash;xml http????????????</p> <p>Context&mdash;&mdash;?????????</p> <p>??????????error????????????????????????????????????????????????????error???????????????????У???????????????????Request????????????????????μ?????????</p> <p>????????</p> <p>???????????</p> <p>Ajax??????????????ServerSideAdd??????????????????????????integers??strings??double??booleans??DateTime??DataSets??DataTables????????????????????????????????????????????????ToString???<br /> ?????DataSets????????.NET DataSet??????????????????????????DataSet????????????????????????????????е??????</p> <p>??script language=&quot;JavaScript&quot;&gt;<br /> //Asynchronous call to the mythical &quot;GetDataSet&quot; server-side function<br /> function getDataSet(){<br /> AjaxFunctions.GetDataSet(GetDataSet_callback); <br /> }<br /> function GetDataSet_callback(response){<br /> var ds = response.value; <br /> if(ds != null &amp;&amp; typeof(ds) == &quot;object&quot; &amp;&amp; ds.Tables != null){<br /> var s = new Array(); <br /> s[s.length] = &quot;??table border=1&gt;&quot;; <br /> for(var i=0; i??ds.Tables[0].Rows.length; i++){<br /> s[s.length] = &quot;??tr&gt;&quot;; <br /> s[s.length] = &qu [PHP???]Fedora??Zend Studio 6.1.2 ?????? http://www.haxv.top//tech/288.html ??????? PHP??? 2009/9/10 19:09:12 <p>Zend Studio??????PHPer???????????????????????????????????????????±?????????????????????????з???????????????????????PHPer????????Ч???</p> <p>1?????÷???????</p> <p>????????????????????е?????????Server??Zend??????????????????????÷????????????????????????Preferences/PHP/PHP Server?н??????????Run??????????б??????Run Configuration/Server?????á?</p> <p>?????μ?Server?????????????Server??????????????????????????????????????????????????/etc/httpd/conf.d/vhost???????????????????????????????????????HOSTS????/etc/hosts?У???</p> <p>????????????????????棬???????????&ldquo;Run&rdquo;???????ε????????????????????????????????????????Zend Studio??????????????н???????????????????????????????????????????????????????????л?????????У????F5??2???????</p> <p>2??????PHP?????</p> <p>???????Fedora?£?????????????????????PHP???????????????????????????????????ò???з?????????????????á??????????????????PHP Project????????????????????????????????????</p> <p>????PHP Project?????????????????????????????????????????????????????????????????????????????????????????????&ldquo;Ctrl+Left Click&rdquo;??</p> <p>3??DEBUG??</p> <p>???????????????????PHP??????????????????????????????? Zend Studio ??Debug??????????????Debug ?????????????? Window/Preferences/PHP/Debug???????</p> <p>?????Щ?????</p> <p>PHP Debugger?? ???????Zend Debugger???????????Zend Debugger???????á?Zend Studio 6.1.2 ???????????????????Window/Preference/PHP/Debug/Installed Debuggers???в???</p> <p>Zend Debugger???ù?????????????dummy.php??????????????????????????????????????????????????SESSION?????????????????????</p> <p>PHP Server?? ???????????????????????</p> <p>PHP Executable?????????PHP?汾????????????μ????????????Window / Preference / PHP / PHP Executable???????</p> <p>?????????????????????????????????????????????????????е??????</p> <p>Zend Studio?????????????????????????С?????????????????????????????????????????</p> <p>3.1 PHP??????????PHP Script Local Debugging????</p> <p>???????????Zend Studio ?????Debugger???е????????????????????????????????????????????????????????????????????????????????У?????????????????Zend Studio?????PHP Executable??????</p> <p>?????????????</p> <p>3.1.1 ??????????????????</p> <p>3.1.2 ?????????</p> <p>3.1.3 ???Debug?????????Debug??????????????? Debug As ????. / Debug Configurations ???????á?</p> <p>3.1.4 ???????????????????????????????Break at first line?????е????</p> <p>3.1.5 ??????????????????????????м??????????????о?????????????????????????????????????&ldquo;Resume&ldquo;??&ldquo;Step Into&ldquo;??????????????У???????????????????й????????仯??</p> <p>3.2 PHP???????????PHP Script Remote Debugging????</p> <p>????????????????÷???????????Zend Debugger????????????μ???????????????????????????????????Zend Debugger??</p> <p>?????????3.1????????????????????????Zend Debugger??????Щ?????</p> <p>????Remote Debugging????????????????????????Zend Debugger???????????????????????????http://www.zend.com/en/products/studio/downloads??</p> <p>???????????????????????а??????????????? ZendDebugger-5.2.14-linux-glibc23-i386 ???????????????????dummy.php????????????Щ?????????????????PHP?汾???????????У?????????????php -v?????в???????????????PHP??????????????У?????? ZendDebugger.so ??·??????????? php.ini ?У???? zend_extension=/usr/lib/php/modules/ZendDebugger.so??</p> <p>????????????д???</p> <p>zend_debugger.allow_hosts=??ip_addresses??</p> <p>zend_debugger.expose_remotely=always</p> <p>????dummy.php?????????????У?????????????????????????????????????? phpinfo???? ????????????????????????? Zend Debugger ????</p> <p>3.3 ????PHP?????</p> <p>?????????????????λ?????????????????????????????????????????????</p> <p>3.4 URL Debugging??</p> <p>????????????????????????????????????????е??????????????????????????</p> <p>3.5 ???????????Toolbar Debugging????</p> <p>???????????????μ??????????Zend Studio ????????????Firefox Toolbar ??????????????????????????? Zend ?????Щ?????????</p> <p>4??????????????????????</p> <p>???????????????????????????ú????????????????????????????????????????????????Win??????????????????????????Feodra???????????????飬?????PHP??????У?????????????????á???Zend Studio 7.0?У????Ctrl + Space????????????????</p> <p>5???????????Profile????</p> <p>???????????????????????????е??????????????????????Ч???Profile???????????????????????????????????ù?Firebug??Profile????????????????? Zend Studio ???????????????????????</p> <p>?????Zend Stduio ????л????и??????????????Ч??????????????????????????????????????????????????????????????????????? Zend Help???????????????????? Google ????????????????Ч???????????????????? Senior PHPer ???????</p> <p>???????http://www.cnblogs.com/cocowool/archive/2009/07/29/1534522.html</p> [PHP???]php??????????? http://www.haxv.top//tech/274.html ??????? PHP??? 2009/8/28 19:54:03 <p>???????????????????????????????????????????????????????????ó?????????????????滻????е??????????????????php?????????????????fread()??fwirte()???????????????????????????????????????????????????????????滻????и????λ???????????????鷳??????????????????????????????濳?????????????????????????????</p> <p>???????????????????????????????????????????Щ?仯????????????棬???????????????檔??????б?????????????2???????????????????????????????к???????????????blog???????????????????????????&ldquo;????html?&rdquo;??????&ldquo;?????&rdquo;????html????????Щ??????????????????????в?????????????????&ldquo;???&rdquo;????????????????????????б???????100?Σ??????????б?????????????100?Ρ????????10??????????????????????????????</p> <p>??????л????????????????????????????</p> <p>first???????????ob????????????????????????Ч?????????Щ?????????</p> <p>??????????????????Щ???</p> <p>&lt;?php&nbsp;&nbsp;&nbsp; ob_start(); <br /> @readfile(&quot;http://localhost/?package=pricab&amp;place_port=4&quot;); <br /> $text = ob_get_flush(); <br /> $myfile = fopen(&quot;myfile.html&quot;,&quot;w&quot;); <br /> $text = str_replace (&quot;{counent}&quot;,$string,$text);&nbsp;&nbsp;&nbsp;&nbsp; <br /> fwrite($myfile,$text);&nbsp;&nbsp;&nbsp;&nbsp; <br /> ob_clean(); <br /> ?&gt;</p> <p>????????????????棬??????????????????????????????????????url?????readfile?????????????棬fwrite???????????????棬??????????????????????????????????????Ч????????????????http://localhost/?package=pricab&amp;place_port=4???????????????????????????????β?????????????????????????????????myfile.html?????????????????????????? <br /> ob_start();&nbsp;&nbsp;&nbsp;&nbsp; <br /> @readfile(&quot;http://localhost/?package=pricab&amp;place_port=4&quot;);&nbsp;&nbsp;&nbsp;&nbsp; <br /> $string = ob_get_flush(); <br /> $myfile = fopen(&quot;myfile.html&quot;,&quot;w&quot;);&nbsp;&nbsp;&nbsp;&nbsp; <br /> fwrite($myfile,$string);&nbsp;&nbsp;&nbsp;&nbsp; <br /> ob_clean();</p> <p>?????over??</p> <p>second???????????html???</p> <p>?????????????????????????fread??????棬???str_replace?滻</p> <p>????????????????????</p> <p>$title = &quot;http://siyizhu.com???????&quot;;&nbsp;&nbsp; <br /> $file = &quot;TwoMax Inter test templet,&lt;br&gt;author??[email=Matrix@Two_Max]Matrix@Two_Max[/email]&quot;; <br /> $fp = fopen (&quot;temp.html&quot;,&quot;r&quot;);&nbsp;&nbsp; <br /> $content = fread ($fp,filesize (&quot;temp.html&quot;));&nbsp;&nbsp; <br /> $content = str_replace (&quot;{file}&quot;,$file,$content);&nbsp;&nbsp; <br /> $content = str_replace (&quot;{title}&quot;,$title,$content);&nbsp;&nbsp; <br /> $filename = &quot;test/test.html&quot;;&nbsp;&nbsp; <br /> $handle = fopen ($filename,&quot;w&quot;); //???????????????&nbsp;&nbsp; /* ??????????????????д&nbsp;&nbsp; */&nbsp;&nbsp; if (!is_writable ($filename)) <br /> {&nbsp;&nbsp;&nbsp;&nbsp; die (&quot;?????&quot;.$filename.&quot;????д??????????????????&quot;);&nbsp;&nbsp; }&nbsp;&nbsp; <br /> if (!fwrite ($handle,$content)){ //?????д?????&nbsp;&nbsp;&nbsp;&nbsp; die (&quot;???????&quot;.$filename.&quot;????&quot;);&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; <br /> fclose ($handle); //??????&nbsp;&nbsp;&nbsp; die (&quot;???????&quot;.$filename.&quot;?????&quot;);</p> <p>???????????????????????滻???ɡ??????????????б????????????????????ó??????????????б??????????????????????滻????е???????б???????????????????????????μ?????б?????????????????</p> <p>&lt;?php&nbsp;&nbsp;&nbsp;&nbsp; <br /> $title = &quot;http://&quot;;&nbsp;&nbsp;&nbsp;&nbsp; <br /> $file = &quot;TwoMax Inter test templet,&lt;br&gt;author??[email=Matrix@Two_Max]Matrix@Two_Max[/email]&quot;;&nbsp;&nbsp;&nbsp;&nbsp; <br /> $fp = fopen (&quot;temp.html&quot;,&quot;r&quot;);&nbsp;&nbsp;&nbsp;&nbsp; <br /> $content = fread ($fp,filesize (&quot;temp.html&quot;));&nbsp;&nbsp;&nbsp;&nbsp; <br /> $content = str_replace (&quot;{file}&quot;,$file,$content);&nbsp;&nbsp;&nbsp;&nbsp; <br /> $content = str_replace (&quot;{title}&quot;,$title,$content);&nbsp;&nbsp;&nbsp;&nbsp; <br /> // ?????б???&nbsp;&nbsp;&nbsp;&nbsp; <br /> $list = '';&nbsp;&nbsp;&nbsp;&nbsp; <br /> $sql = &quot;select id,title,filename from article&quot;;&nbsp;&nbsp;&nbsp;&nbsp; <br /> $query = mysql_query ($sql);&nbsp;&nbsp;&nbsp;&nbsp; <br /> while ($result = mysql_fetch_array ($query)){&nbsp;&nbsp;&nbsp;&nbsp; <br /> $list .= '&lt;a href='.$root.$result['filename'].'&nbsp;&nbsp; target=_blank&gt;'.$result['title'].'&lt;/a&gt;&lt;br&gt;';&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; <br /> $content .= str_replace (&quot;{articletable}&quot;,$list,$content);&nbsp;&nbsp;&nbsp;&nbsp; //?????б????&nbsp;&nbsp; <br /> // echo $content;&nbsp;&nbsp;&nbsp;&nbsp; <br /> $filename = &quot;test/test.html&quot;;&nbsp;&nbsp;&nbsp;&nbsp; <br /> $handle = fopen ($filename,&quot;w&quot;); //???????????????&nbsp;&nbsp; <br /> /* ??????????????????д&nbsp;&nbsp;&nbsp; */&nbsp;&nbsp;&nbsp; if (!is_writable ($filename)){&nbsp;&nbsp;&nbsp;&nbsp; die (&quot;?????&quot;.$filename.&quot;????д??????????????????&quot;);&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; if (!fwrite ($handle,$content)){ //?????д?????&nbsp;&nbsp;&nbsp;&nbsp; die (&quot;???????&quot;.$filename.&quot;????&quot;);&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; fclose ($handle); //??????&nbsp;&nbsp;&nbsp;&nbsp; die (&quot;???????&quot;.$filename.&quot;?????&quot;); ?&gt;</p> <p>????????<br /> &nbsp;<br /> ?????????????????20??????????б????????????????45??????????????????????????2?????1?????????2????????????????for ($i = 0; $i &lt; allpages; $i++)???????????????????????????????????????С?????????die (&quot;???????&quot;.$filename.&quot;?????&quot;;????????????????????????????佫?????????С?????</p> <p>&lt;?php $fp = fopen (&quot;temp.html&quot;,&quot;r&quot;); <br /> $content = fread ($fp,filesize (&quot;temp.html&quot;)); <br /> $onepage = '20'; <br /> $sql = &quot;select id from article where channel='$channelid'&quot;; <br /> $query = mysql_query ($sql); <br /> $num = mysql_num_rows ($query); <br /> $allpages = ceil ($num / $onepage); <br /> for ($i = 0;$i&lt;$allpages; $i++) <br /> { if ($i == 0){ $indexpath = &quot;index.html&quot;; } <br /> else { $indexpath = &quot;index_&quot;.$i.&quot;html&quot;; } <br /> $start = $i * $onepage; $list = ''; <br /> $sql_for_page = &quot;select name,filename,title from article where channel='$channelid' limit $start,$onepage&quot;; <br /> $query_for_page = mysql_query ($sql_for_page); <br /> while ($result = $query_for_page){ $list .= '&lt;a href='.$root.$result['filename'].' target=_blank&gt;'.$title.'&lt;/a&gt;&lt;br&gt;'; } <br /> $content = str_replace (&quot;{articletable}&quot;,$list,$content); <br /> if (is_file ($indexpath)){ @unlink ($indexpath); //???????????????? } $handle = fopen ($indexpath,&quot;w&quot;); //??????????????? /*?? ????????????????д */ if (!is_writable ($indexpath)){ echo &quot;?????&quot;.$indexpath.&quot;????д??????????????????&quot;; //????echo } if (!fwrite ($handle,$content)){ //?????д????? echo &quot;???????&quot;.$indexpath.&quot;????&quot;; //????echo } fclose ($handle); //?????? } <br /> fclose ($fp); die (&quot;????????????????????????????????????????????????&quot;);?&gt; <br /> third??smarty???????????? <br /> ????????smarty?????smarty????????fetch???????書???е???????fread()???????????????????. <br /> ????????????????????????smarty????й???fetch???????????hoho ????????£????????????????????????</p> [.Net???].Net??????ASP.NET?е?session?洢?????? http://www.haxv.top//tech/264.html ??????? .Net??? 2009/8/19 10:36:14 <p>??asp.net?е?Session?洢???????asp????????????????????洢???????????????2000????????web???????????????????????????????????????????????Session???????????????IIS,?????.???????????????.???????????????????? ??????????????!?????????????ü????????????????????????????????????20????????????100????????????????????????????????????????????????????,?????????????????????</p> <p>??web.config??? <br /> &lt; sessionState</p> <p>mode=&quot;InProc&quot;</p> <p>stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot;</p> <p>sqlConnectionString=&quot;data source=127.0.0.1;Trusted_Connection=yes&quot;</p> <p>cookieless=&quot;false&quot;</p> <p>timeout=&quot;20&quot;</p> <p>/&gt;</p> <p>????????mode??InProc????,???????????ASP??????????????????Session????洢??IIS???????,??IIS???????????Щ???????????????????????????????(??????????????),????????asp.net?????????</p> <p>?????????????????????????????????????????????????????Inetinfo.exe??????????????????????Session?????????????????????????Session??洢?????Session????洢???????</p> <p>???????????????????????????:asp.net State Service??????????.??????????????????????????????????п?????????aspnet_state.exe??????????????????session?????????</p> <p>??????web.config????а?Mode??????StateServer,?????????OK.</p> <p>&lt; sessionState</p> <p>mode=&quot;StateServer&quot;</p> <p>stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot;</p> <p>sqlConnectionString=&quot;data source=192.10.78.76;User id=sa;password=sa&quot;</p> <p>cookieless=&quot;false&quot;</p> <p>timeout=&quot;20&quot;</p> <p>/&gt;</p> <p>????????????????IIS,?????session????????????????????????????????????????????????У???????????? stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot;,IP?????????????????ɡ?</p> <p>?????????????????.???????????Web?????????,??????????????WEB????Web??????????????????</p> <p>?????????????????asp.net??ADO.NET????????????????????100, ??????????6000????д????????</p> <p>&ldquo;Server=(local);</p> <p>Database=rgs;</p> <p>password=sa;</p> <p>user ID=sa;</p> <p>Max Pool Size =6000;</p> <p>Min Pool Size =5;</p> <p>Pooling=True&rdquo;</p> <p>????Machine.config?е?ProcessModel?е?memoryLimit???95,????60??????????ó???60%??iis???????????????????д?????Щ???IIS??????????????IIS???????? ??</p> <p>??????????Щ??????????????????б??????????????з????????????????????????????????????????????????????ASP.NET?е?session?洢?????????Session?洢??SQLServer?У??????????????????Щ??</p> <p>????SQLServer??,???????????SQLServer?????????????InstallSqlState.sql??InstallPersistSqlState.sql?????λ??:systemroot\Microsoft.NET\Framework\versionNumber????)???????????????????ASPState???????,??????????????????ASPStateTempApplication??ASPStageTempSessions???λ?á?InstallSqlState.sql???????Щ??????TempDB?????,???????????????????????????,??InstallPersistSqlState.sql???????Щ??????ASPState?????,??????????????????????</p> <p>???????ó????web.config?????,??&lt; sessionState&gt;????mode?????????SQLServer,???sqlConnectionString?????????Integrated Security=SSPI;data source=serverName;</p> <p>&lt; sessionState mode=&quot;SQLServer&quot; sqlConnectionString=&quot; Integrated Security=SSPI;</p> <p>data source=dataserver;&quot;</p> <p>cookieless=&quot;false&quot;</p> <p>timeout=&quot;20&quot;/&gt;</p> <p>&lt; /sessionState&gt;</p> <p><br /> ??????????????????????????,???????????????</p> <p><br /> &lt; sessionState</p> <p>mode=&quot;SQLServer&quot;</p> <p>stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot;</p> <p>sqlConnectionString=&quot;data source=192.10.78.76;User id=sa;password=sa&quot;</p> <p>cookieless=&quot;false&quot;</p> <p>timeout=&quot;20&quot;</p> <p>/&gt;</p> <p>?????????????,??????????????????????????????????(systemroot\Microsoft.NET\Framework\versionNumber)???UninstallPersistSqlState.sql????UninstallSqlState.sql??????м??ɡ????????????ASP.NET?е?session?洢????</p> <p>??????????????????StateServer????SQLServer??????????session????????,????????????л?,?????????????Serializable?????????????!</p> [.Net???]ASP.NET?????AJAX?е??? http://www.haxv.top//tech/259.html ???? .Net??? 2009/8/17 11:40:13 <p>ASP.NET?????AJAX?е????????????</p> <p>asp.net?????php?????jquery??????????ajax?????????????asp.net?????????????????????????viewstate????????js??????????????????viewstate??????????Щ????????????????????????????????????????????????鷳??</p> <p>????asp.net??????????html????????js???????????????</p> <p>????Surance?? http://www.fltek.com.cn/)?о????????asp.net?У???3????????ajax??????????ms??????????????????</p> <p>?????PageMethod??????????ICallbackEventHandler?????????????ms?????ajax?????</p> <p>??????????????????????????????</p> <p>??????????div????????????????????ú?????????????????????д??div???????治???</p> <p>?????и?????????????????????????????</p> <p>ASP.NET?????AJAX?е???1??PageMehtod</p> <p>??????????????asp.net??ajax???????????????????????webconfig??</p> <p>???????????潨???????</p> <p>&lt; asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; EnablePageMethods=&quot;true&quot; /&gt;&nbsp;&nbsp;&nbsp; &lt; div id=&quot;show&quot; runat=&quot;server&quot;&gt;aaaa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; /div&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt; asp:HiddenField ID=&quot;HiddenField1&quot; runat=&quot;server&quot; /&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt; input type=&quot;button&quot; value=&quot;1111&quot; onclick=&quot;myFun()&quot; id=&quot;Button2&quot; /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;getValue&quot; OnClick=&quot;Button1_Click&quot; /&gt;&nbsp;&nbsp; <br /> ????????js</p> <p>&lt; script&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function myFun()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PageMethods.GetDate('a',myCallBack)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function myCallBack(result)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var di = document.getElementById(&quot;HiddenField1&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; di.value=result;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var di = document.getElementById(&quot;show&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; di.innerHTML=result;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; /script&gt;&nbsp;&nbsp; <br /> ??????????????</p> <p>??????????????????????????????д???????????</p> <p>???????????????????????????</p> <p>[System.Web.Services.WebMethod]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static DateTime GetDate(string a)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return DateTime.Now;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected void Button1_Click(object sender, EventArgs e)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable dt = (DataTable)this.DataList1.DataSource;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(dt.Rows.Count);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; <br /> ASP.NET?????AJAX?е???2?????ICallbackEventHandler</p> <p>????????</p> <p>???????????????</p> <p>public partial class Default2 : System.Web.UI.Page, ICallbackEventHandler</p> <p><br /> ???????????????</p> <p><br /> &lt; form id=&quot;form1&quot; runat=&quot;server&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; div id=&quot;show&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; /div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; input type=&quot;button&quot; onclick=&quot;CallServer()&quot; value=&quot;CallServer&quot;&gt;&lt; /input&gt;&nbsp;&nbsp; <br /> ???????</p> <p>д??js</p> <p><br /> &lt; script type=&quot;text/javascript&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function CallServer()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var product = &quot;1&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; %= ClientScript.GetCallbackEventReference(this, &quot;product&quot;, &quot;ReceiveServerData&quot;,null)%&gt;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function ReceiveServerData(rValue)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(rValue);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var di = document.getElementById(&quot;show&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; di.innerHTML=rValue;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; &lt; /script&gt;&nbsp; <br /> ???崠??</p> <p>???????</p> <p>?????????? public&nbsp; string CallBackValue;</p> <p>????????</p> <p><br /> public string GetCallbackResult()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CallBackValue + &quot;,ok&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void RaiseCallbackEvent(string eventArgument)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.CallBackValue = eventArgument;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp; <br /> ?????RaiseCallbackEvent????????μ????</p> <p>GetCallbackResult???????????????????</p> <p>??????????????</p> <p>????к???????????????????js????????</p> <p>???????RenderControl????????asp.net???????html</p> <p>??????RaiseCallbackEvent??switchargument?????????????????????????ò?????????</p> [PHP???]???PHP???DataGrid???? http://www.haxv.top//tech/258.html ???? PHP??? 2009/8/17 11:36:44 <p>?????????????PHP???DataGrid??????????????????????????????б????????????????????????????桿????????桿??????????????????????????????м??????????????????У????????????????MySQL?????????????Oracle???????ο?????????????????????phpMyDataGrid?????????????????????????MySQL????÷???????????????Oracle?????????sqlrelay??????ο?????</p> <p><strong>1. ???????????????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> <pre ><span style="color: blue">create database </span>`guru`<span style="color: gray">;</span> <span style="color: blue">USE </span>`guru`<span style="color: gray">;</span> <span style="color: blue">CREATE TABLE </span>`employees` <span style="color: gray">( </span>`id` <span style="color: blue">int</span><span style="color: gray">(</span>6<span style="color: gray">) NOT NULL </span>auto_increment<span style="color: gray">, </span>`name` <span style="color: blue">char</span><span style="color: gray">(</span>20<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`lastname` <span style="color: blue">char</span><span style="color: gray">(</span>20<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`salary` <span style="color: blue">float default </span><span style="color: gray">NULL, </span>`age` <span style="color: blue">int</span><span style="color: gray">(</span>2<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`afiliation` <span style="color: blue">date default </span><span style="color: gray">NULL, </span>`status` <span style="color: blue">int</span><span style="color: gray">(</span>1<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`active` <span style="color: blue">tinyint</span><span style="color: gray">(</span>1<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`workeddays` <span style="color: blue">int</span><span style="color: gray">(</span>2<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span>`photo` <span style="color: blue">char</span><span style="color: gray">(</span>30<span style="color: gray">) </span><span style="color: blue">default </span><span style="color: gray">NULL, </span><span style="color: blue">PRIMARY KEY </span><span style="color: gray">(</span>`id`<span style="color: gray">) )</span> <span style="color: blue">insert into </span>`employees` <span style="color: gray">(</span>`id`<span style="color: gray">,</span>`name`<span style="color: gray">,</span>`lastname`<span style="color: gray">,</span>`salary`<span style="color: gray">,</span>`age`<span style="color: gray">,</span>`afiliation`<span style="color: gray">,</span>`status`<span style="color: gray">,</span>`active`<span style="color: gray">,</span>`workeddays`<span style="color: gray">,</span>`photo`<span style="color: gray">) </span><span style="color: blue">values </span><span style="color: gray">(</span>1<span style="color: gray">, </span><span style="color: red">'Ana'</span><span style="color: gray">, </span><span style="color: red">'Trujillo'</span><span style="color: gray">,</span>2000<span style="color: gray">,</span>45<span style="color: gray">, </span><span style="color: red">'2005-05-13'</span><span style="color: gray">,</span>1<span style="color: gray">,</span>1<span style="color: gray">,</span>10<span style="color: gray">, </span><span style="color: red">'1.jpg'</span><span style="color: gray">); </span><span style="color: blue">insert into </span>`employees` <span style="color: gray">(</span>`id`<span style="color: gray">,</span>`name`<span style="color: gray">,</span>`lastname`<span style="color: gray">,</span>`salary`<span style="color: gray">,</span>`age`<span style="color: gray">,</span>`afiliation`<span style="color: gray">,</span>`status`<span style="color: gray">,</span>`active`<span style="color: gray">,</span>`workeddays`<span style="color: gray">,</span>`photo`<span style="color: gray">) </span><span style="color: blue">values </span><span style="color: gray">(</span>2<span style="color: gray">, </span><span style="color: red">'Jennifer'</span><span style="color: gray">, </span><span style="color: red">'Aniston'</span><span style="color: gray">,</span>3500<span style="color: gray">,</span>23<span style="color: gray">, </span><span style="color: red">'2004-10-22'</span><span style="color: gray">,</span>1<span style="color: gray">,</span>0<span style="color: gray">,</span>0<span style="color: gray">, </span><span style="color: red">'2.jpg'</span><span style="color: gray">); </span><span style="color: blue">insert into </span>`employees` <span style="color: gray">(</span>`id`<span style="color: gray">,</span>`name`<span style="color: gray">,</span>`lastname`<span style="color: gray">,</span>`salary`<span style="color: gray">,</span>`age`<span style="color: gray">,</span>`afiliation`<span style="color: gray">,</span>`status`<span style="color: gray">,</span>`active`<span style="color: gray">,</span>`workeddays`<span style="color: gray">,</span>`photo`<span style="color: gray">) </span><span style="color: blue">values </span><span style="color: gray">(</span>3<span style="color: gray">, </span><span style="color: red">'Michael'</span><span style="color: gray">, </span><span style="color: red">'Norman'</span><span style="color: gray">,</span>1200<span style="color: gray">,</span>19<span style="color: gray">, </span><span style="color: red">'2007-01-10'</span><span style="color: gray">,</span>1<span style="color: gray">,</span>1<span style="color: gray">,</span>5<span style="color: gray">, </span><span style="color: red">'3.jpg'</span><span style="color: gray">); </span><span style="color: blue">insert into </span>`employees` <span style="color: gray">(</span>`id`<span style="color: gray">,</span>`name`<span style="color: gray">,</span>`lastname`<span style="color: gray">,</span>`salary`<span style="color: gray">,</span>`age`<span style="color: gray">,</span>`afiliation`<span style="color: gray">,</span>`status`<span style="color: gray">,</span>`active`<span style="color: gray">,</span>`workeddays`<span style="color: gray">,</span>`photo`<span style="color: gray">) </span><span style="color: blue">values </span><span style="color: gray">(</span>4<span style="color: gray">, </span><span style="color: red">'Vanessa'</span><span style="color: gray">, </span><span style="color: red">'Black'</span><span style="color: gray">,</span>6500<span style="color: gray">,</span>31<span style="color: gray">, </span><span style="color: red">'2000-11-05'</span><span style="color: gray">,</span>1<span style="color: gray">,</span>1<span style="color: gray">,</span>30<span style="color: gray">, </span><span style="color: red">'4.jpg'</span><span style="color: gray">); </span><span style="color: blue">insert into </span>`employees` <span style="color: gray">(</span>`id`<span style="color: gray">,</span>`name`<span style="color: gray">,</span>`lastname`<span style="color: gray">,</span>`salary`<span style="color: gray">,</span>`age`<span style="color: gray">,</span>`afiliation`<span style="color: gray">,</span>`status`<span style="color: gray">,</span>`active`<span style="color: gray">,</span>`workeddays`<span style="color: gray">,</span>`photo`<span [Asp???]ASP?????????????????? http://www.haxv.top//tech/200.html ?????? Asp??? 2009/7/7 19:45:46 <p> <p><span >??ASP????У???????????????????????????????????????????????</span></p> </p> <p><span > <p>???????棺sub.htm&nbsp;</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted"> <tbody> <tr> <td bgcolor="#fdfddf" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> <p>&lt;html&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;head&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;title&gt;??????????/title&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;body&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;sub.asp&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;p&gt; ?????: <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; name=&quot;UserID&quot; size=&quot;25&quot; maxlength=&quot;20&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; ?????: <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; name=&quot;Pass&quot; size=&quot;12&quot; maxlength=&quot;20&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;??&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/p&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/form&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/body&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/html&gt;</p> </td> </tr> </tbody> </table> </p> </span></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted"> <tbody> <tr> <td bgcolor="#fdfddf" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> &nbsp;&nbsp;&nbsp; SUB.asp???? <br /> &nbsp;&nbsp;&nbsp; &lt;% <br /> &nbsp;&nbsp;&nbsp; ???????е????? <br /> &nbsp;&nbsp;&nbsp; user=request.from(&quot;UserID&quot;) <br /> &nbsp;&nbsp;&nbsp; ???????????????????(?????????????JAVASCRIPT OR VBSCRIPT????????????????????????? <br /> &nbsp;&nbsp;&nbsp; if user=&quot;&quot; then <br /> &nbsp;&nbsp;&nbsp; ????????????棡 <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err1.htm&quot; <br /> &nbsp;&nbsp;&nbsp; ?????????????????????? <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; pass=request.from(&quot;Pass&quot;) <br /> &nbsp;&nbsp;&nbsp; if pass=&quot;&quot; then <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err2.htm&quot; <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; ????????? <br /> &nbsp;&nbsp;&nbsp; file=server.mappath(&quot;????????&quot;) <br /> &nbsp;&nbsp;&nbsp; set conn=server.createobject(&quot;adodb.connection&quot;) <br /> &nbsp;&nbsp;&nbsp; dr=&quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;file <br /> &nbsp;&nbsp;&nbsp; conn.open dr <br /> &nbsp;&nbsp;&nbsp; set rs=server.createobject(&quot;adodb.recordset&quot;) <br /> &nbsp;&nbsp;&nbsp; ??????????SQL???? <br /> &nbsp;&nbsp;&nbsp; sql=&quot;select * from ?? where user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot; <br /> &nbsp;&nbsp;&nbsp; rs.open sql <br /> &nbsp;&nbsp;&nbsp; if not rs.eof then <br /> &nbsp;&nbsp;&nbsp; ????????????????? <br /> &nbsp;&nbsp;&nbsp; reponse.redirect &quot;login.asp&quot; <br /> &nbsp;&nbsp;&nbsp; else <br /> &nbsp;&nbsp;&nbsp; ??????????????? <br /> &nbsp;&nbsp;&nbsp; response.write &quot;err3.htm&quot; <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; %&gt;</td> </tr> </tbody> </table> </p> <p>???о????????????????????????????????????????????</p> <p>???????????????????????SUb.htm??????????????</p> <p>????????????????a or 1 = 1 ?? OR =</p> <p>????????????????a or 1 = 1 ?? OR =</p> <p>??????????...&ldquo;??????????ò????????????????...&quot;</p> <p>&quot;a &quot; ??&ldquo;1&rdquo;????????</p> <p>??????????????????Щ??????????????????????</p> <p>?????Щ?????????????SQL????????????????????</p> <p>?????????????SQL????????в??????user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot;????????</p> <p>sql=&quot;select * from ?? where user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot;</p> <p>?????????????????????</p> <p>sql=&quot;select * from ?? where user= a or 1 = 1 and pass= a or 1 = 1 &quot;</p> <p>???????????в????????????????????????????????????</p> <p>????USER PASS????????? ?????????????????????</p> <p>?????????</p> <p>??????????????</p> <p>??REPLACE?????????????????к???????????????滻??????????????sql=&quot;select * from ?? where user= &quot;&amp;replace(user,&quot; &quot;,&quot; &quot;)&amp;&quot; and pass= &quot;&amp;replace(pass,&quot; &quot;,&quot; &quot;)&amp;&quot; &quot;</p> <p>??????????????滻???????????Σ???????????&quot; &quot;????????&quot;&gt;&quot;??&quot;&lt;&quot;??&quot;&amp;&quot;??&quot;%&quot;???????????????????????REPLACE????????????????????????</p> <p>????????????</p> <p>?ó????????????????????????????????????????????????????????κο????Σ???????????????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted"> <tbody> <tr> <td bgcolor="#fdfddf" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> &lt;% <br /> &nbsp;&nbsp;&nbsp; ?????????????????? <br /> &nbsp;&nbsp;&nbsp; user=request.from(&quot;user&quot;) <br /> &nbsp;&nbsp;&nbsp; pass=request.from(&quot;pass&quot;) <br /> &nbsp;&nbsp;&nbsp; ... <br /> &nbsp;&nbsp;&nbsp; ????????? <br /> &nbsp;&nbsp;&nbsp; for i=1 to len(user) <br /> &nbsp;&nbsp;&nbsp; ??MID????????????user??i λ????????? <br /> &nbsp;&nbsp;&nbsp; us=mid(user,i,1) <br /> &nbsp;&nbsp;&nbsp; ??????????????б?? <br /> &nbsp;&nbsp;&nbsp; if us=&quot; &quot; or us=&quot;%&quot; or us=&quot;&lt;&quot; or us=&quot;&gt;&quot; or us=&quot;&amp;&quot; then <br /> &nbsp;&nbsp;&nbsp; ??????????????????????????????????????????? <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err2.htm&quot; <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; next <br /> &nbsp;&nbsp;&nbsp; ... <br /> &nbsp;&nbsp;&nbsp; %&gt;&nbsp;</td> </tr> </tbody> </table> </p> [PHP???]??????phpwind?????????? http://www.haxv.top//tech/199.html ?????? PHP??? 2009/7/7 19:39:44 <p>?????PHPWIND????????????????????????????????</p> <p>??ν??????????PHPWIND????????α?????</p> <p>????????</p> <p>?????Щ????????????PHPWIND??????棺http://www.5kongsoft.com/bbs/post-htm-fid-4.html</p> <p>???????http://www.5kongsoft.com/bbs/post.php?id=4</p> <p>?????????????????????????????????????????HTML???</p> <p>?????α????</p> <p>??????????????????????????PHP??????????????????????????????????</p> <p>????????????????????</p> <p><strong>?????</strong></p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> <ol> <li>&lt;IfModule mod_rewrite.c&gt;</li> <li>RewriteEngine On</li> <li>RewriteBase /</li> <li>RewriteRule ^(.*)-htm-(.*)$ $1.php?$2</li> <li>&lt;/IfModule&gt;</li> </ol> </td> </tr> </tbody> </table> </p> <p>?????????????????htaccess.txt</p> <p><strong>?????</strong></p> <p>???????????????????? .htaccess</p> <p>????PHP???????????????????????????????????????</p> <p>?????unix??????????????????е??????????????????????????</p> <p><strong>??????</strong></p> <p>?????????澲???????????PHPWIND????????????ɡ?</p> <p>???????????????php???????????????????????phpwind??</p> [Asp???]???ASP???????????? http://www.haxv.top//tech/186.html ?????? Asp??? 2009/6/24 19:10:11 <p>??????????<br /> &lt;%<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> %&gt;</p> <p>???????</p> <p>exec=&quot;select * from ??????&quot;<br /> set rs=server.createobject(&quot;adodb.recordset&quot;)<br /> rs.open exec,conn,1,1 <br /> ????1??1????<br /> ???????????&lt;%=rs(&quot;???&quot;)%&gt;<br /> ????????????</p> <p>&lt;%<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> name=request.form(&quot;???&quot;) name,tel,message?????????????????<br /> tel=request.form(&quot;???&quot;)<br /> message=request.form(&quot;???&quot;)<br /> exec=&quot;insert into ????(???)values(';&quot;+???+&quot;';)&quot; ??????????<br /> conn.execute exec ???execute??<br /> conn.close<br /> set conn=nothing<br /> %&gt;</p> <p>???????????:</p> <p>&lt;%<br /> name=request.form(&quot;???&quot;) name,tel?????????????????<br /> tel=request.form(&quot;???&quot;)<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> exec=&quot;select * from ?? where name=';&quot;+???+&quot;'; and tel=&quot;+???<br /> set rs=server.createobject(&quot;adodb.recordset&quot;)<br /> rs.open exec,conn,1,1<br /> %&gt;</p> <p>';????????????????????</p> <p>&lt;%<br /> do while not rs.eof<br /> %&gt;&lt;tr&gt;<br /> &lt;td&gt;&lt;%=rs(&quot;name&quot;)%&gt;&lt;/td&gt;<br /> &lt;td&gt;&lt;%=rs(&quot;tel&quot;)%&gt;&lt;/td&gt;<br /> &lt;td&gt;&lt;%=rs(&quot;time&quot;)%&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;%<br /> rs.movenext<br /> loop<br /> %&gt;</p> <p>?????????????:</p> <p>&lt;%<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> exec=&quot;delete * from ???? where ???=&quot;&amp;request.form(&quot;id&quot;)<br /> conn.execute exec<br /> %&gt;</p> <p>????????????:</p> <p>&lt;%<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> exec=&quot;select * from ???? where ???=&quot;&amp;request.form(&quot;id&quot;)<br /> set rs=server.createobject(&quot;adodb.recordset&quot;)<br /> rs.open exec,conn,1,3 ';1,3???????<br /> rs(&quot;name&quot;)=request.form(&quot;???&quot;) ';name,tel,message?????????????????<br /> rs(&quot;tel&quot;)=request.form(&quot;???&quot;)<br /> rs(&quot;message&quot;)=request.form(&quot;???&quot;)<br /> rs.update<br /> rs.close<br /> set rs=nothing<br /> conn.close<br /> set conn=nothing<br /> %&gt;</p> <p>???????г???:????ID?????&gt;&gt;&gt;????????ID????&gt;&gt;&gt;&gt;&gt;&gt;?????????????<br /> ?????????????????:</p> <p>&lt;%<br /> dim name,password<br /> name=request.form(&quot;name&quot;)<br /> password=request.form(&quot;password&quot;)<br /> dim exec,conn,rs<br /> exec=&quot;select *from ???? where(name=';&quot;&amp;???&amp;&quot;'; and password=';&quot;&amp;???&amp;&quot;';)&quot;<br /> set conn=server.createobject(&quot;adodb.connection&quot;)<br /> conn.open &quot;driver={microsoft access driver (*.mdb)};dbq=&quot;&amp;server.mappath(&quot;???????&quot;)<br /> set rs=server.createobject(&quot;adodb.recordset&quot;)<br /> rs.open exec,conn<br /> if not rs.eof then<br /> rs.Close<br /> conn.Close<br /> session(&quot;checked&quot;)=&quot;yes&quot;<br /> session(&quot;check&quot;)=&quot;right&quot;<br /> response.Redirect &quot;index.asp&quot;<br /> else<br /> session(&quot;checked&quot;)=&quot;no&quot;<br /> session(&quot;check&quot;)=&quot;wrong&quot;<br /> response.Redirect &quot;login.asp&quot;<br /> end if<br /> %&gt;</p> <p>????????????:</p> <p>&lt;%if not session(&quot;checked&quot;)=&quot;yes&quot; then ';session???漲?????checked?????????<br /> response.Redirect &quot;login.asp&quot; <br /> else<br /> %&gt;</p> [.Net???]ASP.NET?????????????????? http://www.haxv.top//tech/185.html ???? .Net??? 2009/6/20 22:13:03 <p>?????????????????????????????????????????????????????????????????????????????????????????????????????????????ó??????????????????????д???????????????????????????????????洦?????????????????????°????????á????????????????????????????????????????????????????????????????????????????д???????????????????????????????????? ???????????????????????????????????????????????£??????????????</p> <p>1.????(????)?????</p> <p>???????????????????????????????????ASP.NET?У??????????к????????????????????????????Try&hellip;Catch&hellip; Finally????????????ASP?????н??????????????????Щ????????????????????????????????????????????????????????£???????????????????</p> <p>2.??????????</p> <p>???????У????????????????????????????ASP.NET??????????????ASP?????????????ASP.NET?У??????????????????????StringBulider?????????????????Щ??????????????????????????????StringBuilder??????????????????????</p> <p>??ASP.NET?У?????????????&ldquo;&amp;&rdquo;?????????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"> <p><font color="#ff0000">???????????????</font></p> <p><span twffan="done" style="color: #000000">Dim myOutputString As String </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">My name is</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000"><br /> Dim myInputString As String </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000"> Alex</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000"><br /> myOutputString </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> myOutputString </span><span twffan="done" style="color: #000000">&amp;</span><span twffan="done" style="color: #000000"> myInputString<br /> Response.Write(myoutputString)</span></p> </td> </tr> </tbody> </table> </p> <p>???????????????StringBuilder???????????StringBuilder??????????????????????Щ???????????????Append??Replace??Insert??Remove????????????????????????</p> <p>(1)StringBuilder??Append?????</p> <p>Append???????????Append????????????????????????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"> <p><font color="#ff0000">???????????????</font></p> <p><span twffan="done" style="color: #000000">Dim sb </span><span twffan="done" style="color: #0000ff">as</span><span twffan="done" style="color: #000000"> StringBuilder </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> New StringBuilder()<br /> sb.append( </span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;table border=\\\'1\\\' width=\\\'80%\\\'&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000"> )<br /> For i </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800080">0</span><span twffan="done" style="color: #000000"> To RowCount </span><span twffan="done" style="color: #000000">-</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800080">1</span><span twffan="done" style="color: #000000"><br /> sb.Append(</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;tr&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000">)<br /> For k </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800080">0</span><span twffan="done" style="color: #000000"> To ColCount </span><span twffan="done" style="color: #000000">-</span><span twffan="done" style="color: #000000"> </span><span twffan="done" style="color: #800080">1</span><span twffan="done" style="color: #000000"><br /> sb.Append(</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;td&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000">)<br /> sb.Append( dt.Rows(i).Item(k, DataRowVersion.Current).toString())<br /> sb.Append( </span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;/td&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000"> )<br /> Next<br /> sb.Append(</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;tr&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000">)<br /> Next<br /> sb.Append( </span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #800000">&lt;/table&gt;</span><span twffan="done" style="color: #800000">&quot;</span><span twffan="done" style="color: #000000">)<br /> Dim strOutput </span><span twffan="done" style="color: #0000ff">as</span><span twffan="done" style="color: #000000"> String </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> sb.ToString()<br /> lblCompany.Text </span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #000000"> strOutput</span></p> </td> </tr> </tbody> </table> </p> <p>???????????У???Append??????????????????????????????????StringBulider???????????ToString()????????????String???????????????????????????У???????????????Append???????????????????????????????????????????????????? Append????????????????????????Appemd???Integer??????????????????????????????????????????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #0099cc 1px solid; table-layout: fixed; border-top: #0099cc 1px solid; border-left: #0099cc 1px solid; border-bottom: #0099cc 1px solid"> <tbody> <tr> <td bgcolor="#ddedfb" style="word-wrap: break-word"> <p><font color="#ff0000">???????????????</font></p> <p><span twffan="done" style="color: #000000">Sub Page_Load(Source As Object, E As EventArgs)<br /> Dim sb As System.Text.StringBuilder<br /> Dim varother As Integer<br /> varother</span><span twffan="done" style="color: #000000">=</span><span twffan="done" style="color: #80008 [.Net???]ASP.NET????????????????÷??????? http://www.haxv.top//tech/184.html ???? .Net??? 2009/6/20 22:10:00 <p>????????????????÷??????????????????????У? <br /> 1/**//// <br /> 2 /// ?????????????????????????<br /> 3 /// <br /> 4 /// ????????????<br /> 5 /// ??е???????????????????????<br /> 6 /// <br /> 7 public string CutStr(string str,int len)<br /> 8 { string s=&quot;&quot;;<br /> 9 <br /> 10 for(int i=0;i 11 {<br /> 12 int r= i% len;<br /> 13 int last =(str.Length/len)*len;<br /> 14 if (i!=0 &amp;&amp; i&lt;=last)<br /> 15 {<br /> 16 <br /> 17 if( r==0)<br /> 18 {<br /> 19 s+=str.Substring(i-len,len)+&quot;<br /> &quot;;<br /> 20 }<br /> 21 <br /> 22 }<br /> 23 else if (i&gt;last)<br /> 24 {<br /> 25 s+=str.Substring(i-1) ;<br /> 26 break;<br /> 27 }<br /> 28 <br /> 29 }<br /> 30 <br /> 31 return s;<br /> 32 <br /> 33 }<br /> 34<br /> 35<br /> 36 /**//// <br /> 37 /// ???????????????????????????????????????????<br /> 38 /// <br /> 39 /// ????????????<br /> 40 /// ??е???????????????????????<br /> 41 /// ???????????????<br /> 42 /// <br /> 43 public string CutStr(string str,int len,int max)<br /> 44 {<br /> 45 string s=&quot;&quot;;<br /> 46 string sheng=&quot;&quot;;<br /> 47 if (str.Length &gt;max)<br /> 48 {<br /> 49 str=str.Substring(0,max) ;<br /> 50 sheng=&quot;&quot;;<br /> 51 }<br /> 52 for(int i=0;i 53 {<br /> 54 int r= i% len;<br /> 55 int last =(str.Length/len)*len;<br /> 56 if (i!=0 &amp;&amp; i&lt;=last)<br /> 57 {<br /> 58 <br /> 59 if( r==0)<br /> 60 {<br /> 61 s+=str.Substring(i-len,len)+&quot;<br /> &quot;;<br /> 62 }<br /> 63 <br /> 64 }<br /> 65 else if (i&gt;last)<br /> 66 {<br /> 67 s+=str.Substring(i-1) ;<br /> 68 break;<br /> 69 }<br /> 70 <br /> 71 }<br /> 72 <br /> 73 return s+sheng;<br /> 74 <br /> 75 }</p> [PHP???]IIS6.0????PHP??????÷??? http://www.haxv.top//tech/183.html ?????? PHP??? 2009/6/20 22:06:33 <p>??? LAMP ?????????????????????????????PHP??ASP??ASP.NET??JSP??Perl??Web?????????????????????? Windows 2003??IIS 6??á??????к???????IIS 6??????PHP?????£???????Щ?????????????????????????鷳???????????????????????????úú?????????????????????</p> <p>???????????????????????php4?汾???????????php4?汾??????????php5?汾???????????php5?汾???????????php4??????php5??</p> <p>?????</p> <p>1?????????? Windows 2003 ???????????????????? IIS 6??</p> <p>2?????? windows ??? PHP ???????????</p> <p>?????</p> <p>????? PHP ????????????? C:php ???£???????? C: ????????????????Windows ???????????????? D: ??????????? D:php ???£????????????????</p> <p>????&ldquo;??????&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;???&rdquo;-&gt;&ldquo;????????&rdquo;-&gt;&ldquo;??????&rdquo;-&gt;&ldquo;path&rdquo;???????????????????????·???????</p> <p>C:php;C:phpdlls;C:phpextensions;C:phpsapi;</p> <p>?? php.ini-dist ?? php.ini-recommended ????? C:Windows ???£???????? php.ini???????????????????????? php.ini-dist????????????????????? php.ini-recommended ???á???????????£???? php.ini ????????????????????????</p> <p>???????????????????????????</p> <p>extension_dir = &quot;C:phpextensions&quot;</p> <p>????? PHP ?????????????????????????????????????</p> <p>extension=php_mbstring.dll</p> <p>;extension=php_big_int.dll</p> <p>extension=php_bz2.dll</p> <p>extension=php_cpdf.dll</p> <p>extension=php_crack.dll</p> <p>extension=php_curl.dll</p> <p>extension=php_db.dll</p> <p>extension=php_dba.dll</p> <p>extension=php_dbase.dll</p> <p>extension=php_dbx.dll</p> <p>extension=php_domxml.dll</p> <p>;extension=php_exif.dll</p> <p>;extension=php_fdf.dll</p> <p>;extension=php_filepro.dll</p> <p>extension=php_gd2.dll</p> <p>extension=php_gettext.dll</p> <p>extension=php_hyperwave.dll</p> <p>extension=php_iconv.dll</p> <p>;extension=php_ifx.dll</p> <p>;extension=php_iisfunc.dll</p> <p>extension=php_imap.dll</p> <p>;extension=php_interbase.dll</p> <p>extension=php_java.dll</p> <p>extension=php_ldap.dll</p> <p>;extension=php_mcrypt.dll</p> <p>extension=php_mhash.dll</p> <p>extension=php_mime_magic.dll</p> <p>extension=php_ming.dll</p> <p>extension=php_mssql.dll</p> <p>extension=php_msql.dll</p> <p>;extension=php_oci8.dll</p> <p>extension=php_openssl.dll</p> <p>;extension=php_oracle.dll</p> <p>extension=php_pdf.dll</p> <p>extension=php_pgsql.dll</p> <p>;extension=php_printer.dll</p> <p>extension=php_shmop.dll</p> <p>;extension=php_snmp.dll</p> <p>extension=php_sockets.dll</p> <p>;extension=php_sybase_ct.dll</p> <p>extension=php_w32api.dll</p> <p>extension=php_xmlrpc.dll</p> <p>extension=php_xslt.dll</p> <p>extension=php_yaz.dll</p> <p>extension=php_zip.dll</p> <p>??????Щ???????м?????????????????????????д????????????????e??????? Windows 2003 ??????????????????????????????г????? php 4 ?????</p> <p>session.save_path = c:sessions</p> <p>????? session ???????????????????????????????????????????? session ???????Ч?????????????????? ramdisk ???????????? session.save_path ?????? ramdisk ??????? session ????????????????а?? ramdisk???????????????????????κ???????£??? C:sessions ????C:WindowsTemp ?????</p> <p>OK?????????????????????????? IIS ???</p> <p>??&ldquo; Internet ???????(IIS)??????&rdquo;????&ldquo; Web ???????&rdquo;?????&ldquo;???????μ? Web ???????&rdquo;???????????д&ldquo;PHP ISAPI ???&rdquo;????????????C:phpsapiphp4isapi.dll???????????? PHP5???????? C:phpsapiphp5isapi.dll??????????????????????????</p> <p>??&ldquo;???&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;ISAPI ????&rdquo;-&gt;&ldquo;???&rdquo;?????????????д&ldquo;PHP&rdquo;???????????????? C:phpsapiphp4isapi.dll??</p> <p>??&ldquo;???&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;??ó???????&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;??ó??????&rdquo;-&gt;&ldquo;???&rdquo;????????????????? C:phpsapiphp4isapi.dll?????????д&ldquo;.php&rdquo;???????????&ldquo;HEAD,GET,POST&rdquo;??</p> <p>??&ldquo;???&rdquo;-&gt;&ldquo;????&rdquo;-&gt;&ldquo;???&rdquo;-&gt;&ldquo;??????????????&rdquo;-&gt;&ldquo;???&rdquo;??????? index.php ????????????????</p> <p>??????&ldquo;????????????&rdquo;-&gt;&ldquo;????????&rdquo;-&gt;&ldquo;??????? IIS&rdquo;?????? IIS??</p> <p>????</p> <p>???????????????£??????????????棺</p> <p>?????phptest.php</p> <p>phpinfo();</p> <p>?&gt;</p> <p>?????????????????? php ??????????????????????????</p> <p>???????????????? php ?????????? ZendOptimizer-2.6.0-Windows-i386.exe ????????????????????????????????</p> <p>????</p> <p>????????????????????????°汾?? PHP ???????????????????????????? C:php ??????????°汾??????? C:php ???У?????????????? IIS ?????????????????κ?????????????? System32 ???и????κ?????????????????</p> [PHP???]PHP?????????????????????? http://www.haxv.top//tech/182.html ???? PHP??? 2009/6/20 22:04:02 <p>????????仯(juggling)</p> <p>PHP????????????????????????????????????????????????????????????????????????????????????????????????????????????var???? ?????????????var?????????????????????????????????????var,??????????????????????</p> <p>???PHP??????????????????????????????&rsquo;+&rsquo;??????κ?????????????????????????????е?????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????Ψ???仯???????????????????б???δ????</p> <p>$foo = &quot;0&quot;; // $foo ?????????? ?????&ldquo;0&rdquo;(ASCII 48) <br /> $foo++; // $foo ???????????????&ldquo;1&rdquo;(ASCII 49) <br /> $foo += 1; // $foo ???????????????2???? <br /> $foo = $foo + 1.3; // $foo ????????????????(3.3)?? <br /> $foo = 5 + &quot;10 Little Piggies&quot;; // $foo ????????? (15) <br /> $foo = 5 + &quot;10 Small Pigs&quot;; // $foo ????????? (15)</p> <p>????????????????????????????????????е?????????? &ldquo;??????????&rdquo;?????</p> <p>??????????????????????????????????????????? &ldquo;???????(casting)&rdquo; ???????????????????????????????????&ldquo;settype()&rdquo;???????</p> <p>????????????????</p> <p>???PHP???????????????????????????????????????????????????????????κ????????????PHP?????Щ??????????????????????????? Щ??????gettype(), is_long(), is_double(), is_string(), is_array(), ?? is_object().</p> <p>????????type casting??</p> <p>??PHP????????????C?????д???????????????????????д??????????????????????С?</p> <p>$foo = 10; // $foo ????????? <br /> $bar = (double) $foo; // $bar ????????????</p> <p>???μ??????????????</p> <p>(int), (integer) &ndash; ???????? <br /> (real), (double), (float) &ndash; ??????????? <br /> (string) &ndash; ????????? <br /> (array) &ndash; ???????? <br /> (object) &ndash; ???????</p> <p>????????????????????(tabs)????(spaces) ???????????????????</p> <p>$foo = (int) $bar; <br /> $foo = ( int ) $bar;</p> <p>????????</p> <p>??????????????????????????????????????????????????????????????</p> <p>??????????????????&rsquo;.&rsquo;,&rsquo;e&rsquo;,????&rsquo;E&rsquo;?????????????????????????????????????????</p> <p>??????????????????????????????????????κ???Ч?????????????????????????????????????????μ?????????????????(zero)???? Ч??????????????????????Щ????????????????????????棨???????С??????????????????????????檔?????????????????????&rsquo;e&rsquo;?? &rsquo;E&rsquo;???湹????</p> <p>$foo = 1 + &quot;10.5&quot;; // $foo ????????? (11.5) <br /> $foo = 1 + &quot;-1.3e3&quot;; // $foo ?????????(-1299) <br /> $foo = 1 + &quot;bob-1.3e3&quot;; // $foo ?????? (1) <br /> $foo = 1 + &quot;bob3&quot;; // $foo ?????? (1) <br /> $foo = 1 + &quot;10 Small Pigs&quot;; // $foo ?????? (11)<br /> $foo = 1 + &quot;10 Little Piggies&quot;; // $foo ?????? (11);</p> <p>// ???????????????'e'</p> <p>??????????????ο?Unix??????strtod(3)??????</p> [PHP???]PHP?г???????????ЩС???? http://www.haxv.top//tech/181.html ?????? PHP??? 2009/6/20 22:01:06 <p>?????????</p> <p>//?????????</p> <p>function PHP_Read($file_name) {</p> <p>$fd=fopen($file_name,r);</p> <p>while($bufline=fgets($fd, 4096)){</p> <p>$buf.=$bufline;</p> <p>}</p> <p>fclose($fd);</p> <p>return $buf;</p> <p>}</p> <p>?&gt;</p> <p>???д???</p> <p>//???д???</p> <p>function PHP_Write($file_name,$data,$method=&quot;w&quot;) {</p> <p>$filenum=@fopen($file_name,$method);</p> <p>flock($filenum,LOCK_EX);</p> <p>$file_data=fwrite($filenum,$data);</p> <p>fclose($filenum);</p> <p>return $file_data;</p> <p>}</p> <p>?&gt;</p> <p>????????????</p> <p>//????????????</p> <p>function phptohtm($filefrom,$fileto,$u2u=1){</p> <p>if($u2u==1){</p> <p>$data=PHP_Read($filefrom);</p> <p>}else{</p> <p>$data=$filefrom;</p> <p>}</p> <p>PHP_Write($fileto,$data);</p> <p>return true;</p> <p>}</p> <p>?&gt;</p> <p>?????????????????????</p> <p>//?????????????????????</p> <p>function rec_exist($table,$where){</p> <p>$query=&quot;select count(*) as num from $table &quot;.$where;</p> <p>$result=mysql_query($query) or die(nerror(1));</p> <p>$rowcount=mysql_fetch_array($result);</p> <p>$num=$rowcount[&quot;num&quot;];</p> <p>if ($num==0){</p> <p>return false;</p> <p>}</p> <p>return $num;</p> <p>}</p> <p>?&gt;</p> <p>????????</p> <p>//????????</p> <p>function del_DIR($directory){</p> <p>$mydir=dir($directory);</p> <p>while($file=$mydir-&gt;read()){</p> <p>if((is_dir(&quot;$directory/$file&quot;)) AND ($file!=&quot;.&quot;) AND ($file!=&quot;..&quot;)){</p> <p>del_DIR(&quot;$directory/$file&quot;);</p> <p>}else{</p> <p>if(($file!=&quot;.&quot;) AND ($file!=&quot;..&quot;)){</p> <p>unlink(&quot;$directory/$file&quot;);</p> <p>//echo &quot;unlink $directory/$file ok &quot;;</p> <p>}</p> <p>}</p> <p>}</p> <p>$mydir-&gt;close();</p> <p>rmdir($directory);</p> <p>//echo &quot;rmdir $directory ok &quot;;</p> <p>}</p> <p>?&gt;</p> <p>?????????????</p> <p>//????????????</p> <p>function isen($str){</p> <p>$ret=&quot;&quot;;</p> <p>for($i=0;$i $p=ord(substr($str,$i,1));</p> <p>if(($p&lt;48 &amp; $p!=45 &amp; $p!=46) || ($p&gt;57 &amp; $p&lt;65) || ($p&gt;90 &amp; $p&lt;97 &amp; $p!=95) || $p&gt;122){</p> <p>nerror(&quot;??????淶!&quot;);</p> <p>}</p> <p>$ret.=chr($p);</p> <p>}</p> <p>return $ret;</p> <p>}</p> <p>?&gt;</p> <p>??????</p> <p>//??????</p> <p>function splitlist($HALT,$LRLIST,$ECHOCNT,$paper,$table,$where,$page_id,$userid){</p> <p>global $splitstr,$sumcnt;</p> <p>if($paper==&quot;&quot; || $sumcnt==&quot;&quot;){</p> <p>$query = &quot;select count(*) as num from $table $where&quot;;</p> <p>$result = mysql_query($query);</p> <p>$row = mysql_fetch_array($result);</p> <p>$sumcnt=$row[&quot;num&quot;];</p> <p>if($sumcnt==0){</p> <p>nerror(&quot;?e???????????????? !&quot;);</p> <p>}</p> <p>$paper=1;</p> <p>}</p> <p>$sumpaper=($sumcnt-$sumcnt%$ECHOCNT)/$ECHOCNT;</p> <p>if(($sumcnt%$ECHOCNT)!=0) $sumpaper+=1;</p> <p>if($sumpaper==1 &amp;&amp; $HALT==0) return($where);</p> <p>$enwhere=base64_encode(base64_encode($where));</p> <p>if(($LRLIST*2+1) &lt; $sumpaper){</p> <p>if(($paper-$LRLIST) &lt; 2){</p> <p>$tract=1;</p> <p>$sub=$LRLIST*2+1;</p> <p>}else if(($paper+$LRLIST) &gt;= $sumpaper){</p> <p>$tract=$sumpaper-($LRLIST*2);</p> <p>$sub=$sumpaper;</p> <p>}else{</p> <p>$tract=$paper-$LRLIST;</p> <p>$sub=$paper+$LRLIST;</p> <p>}</p> <p>}else{</p> <p>$tract=1;</p> <p>$sub=$sumpaper;</p> <p>}</p> <p>$uppaper=$paper-1;</p> <p>$downpaper=$paper+1;</p> <p>$startcnt=($paper-1)*$ECHOCNT;</p> <p>$where.=&quot; limit ${ startcnt },${ ECHOCNT }&quot;;</p> <p>if($tract &gt; 1) { $splitstr=&quot;?? &lt;&lt; &quot;; }</p> <p>else $splitstr=&quot;?? &lt;&lt; &quot;;</p> <p>for($i=$tract;$i&lt;=$sub;$i++){</p> <p>if ($i!=$paper) $splitstr.=&quot;&quot;.$i.&quot; &quot;;</p> <p>else $splitstr.=&quot;&quot;.$i.&quot; &quot;;</p> <p>}</p> <p>if ($sub!=$sumpaper) $splitstr.=&quot;&gt;&gt; ??&quot;;</p> <p>else $splitstr.=&quot;&gt;&gt; ??&quot;;</p> <p>return($where);</p> <p>}</p> <p>?&gt;</p> <p>?????????????????</p> <p>/*</p> <p>#### ?????????? ####</p> <p>Int $HALT - ???????????1?????(1/0)????????</p> <p>Int $LRLIST - (?????????????-1)/2</p> <p>Int $ECHOCNT - ???????????????????</p> <p>Int $paper - ???????????$paper=$HTTP_GET_VARS[paper];</p> <p>Varchar $table - ???????,??????$table=&quot;db.table&quot;;</p> <p>Varchar $where - ????????????????$where=&quot;where field='value'&quot;;</p> <p>Varchar $enwhere - ???$where????????base64_encode()???????GET??????</p> <p>Varchar $splitstr - ???????????????к???????????λ????? echo $splitstr;</p> <p>???????????????? -</p> <p>$paper=$HTTP_GET_VARS[paper];</p> <p>$sumcnt=$HTTP_GET_VARS[sumcnt];</p> <p>$enwhere=$HTTP_GET_VARS[enwhere];</p> <p>Return (Varchar $where) - ???????????????????</p> <p>????????????ó???????? nerror($error);</p> <p>*/</p> <p>???????????</p> <p>//???????????</p> <p>function upload_img($UploadFile,$UploadFile_name,$UploadFile_size,$UploadPath,$max_size=64){</p> <p>//$TimeLimit=60; //???ó????????? ?????? 30?? ?????0???????</p> <p>//set_time_limit($TimeLimit);</p> <p>if(($UploadFile!= &quot;none&quot; )&amp;&amp;($UploadFile != &quot;&quot; )){</p> <p>$FileName=$UploadPath.$UploadFile_name;</p> <p>if($UploadFile_size &lt;1024){</p> <p>$FileSize=&quot;(string)$UploadFile_size&quot; . &quot;???&quot;;</p> <p>}elseif($UploadFile_size &lt;(1024 * $max_size)){</p> <p>$FileSize=number_format((double)($UploadFile_size / 1024), 1) . &quot; KB&quot;;</p> <p>}else{</p> <p>nerror(&quot;????????????С!&quot;);</p> <p>}</p> <p>//{</p> <p>//$FileSize=&quot;number_format((double)($UploadFile_size&quot; / (1024 * 1024)), 1) . &quot; MB&quot;;</p> <p>// }</p> <p>if(!file_exists($FileName)){</p> <p>if(copy($UploadFile,$FileName)){</p> <p>return &quot;$UploadFile_name ($FileSize)&quot;;</p> <p>}else{</p> <p>nerror(&quot;??? $UploadFile_name ???????!&quot;);</p> <p>}</p> <p>unlink($UploadFile);</p> <p>}else{</p> <p>nerror(&quot;??? $UploadFile_name ???????!&quot;);</p> <p>}</p> <p>//set_time_limit(30); //????????????</p> <p>}</p> <p>}</p> <p>???????ЩС?????</p> <p>????ж?ip????????</p> <p>if(!strcmp(long2ip(sprintf(&quot;%u&quot;,ip2long($ip))),$ip)) echo &quot;is ipn&quot;;</p> <p>----</p> <p>email???????ж?</p> <p>eregi(&quot;^[_.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z_-]+.)+[a-zA-Z]$&quot;, $email);</p> <p>???ip?????mask???????????</p> <p>$ip = '192.168.0.84';</p> <p>$mask = '255.255.255.0';</p> <p>$network = '192.168.0';</p> <p>$ip = ip2long($ip);</p> <p>$mask = ip2long($mask);</p> <p>$network = ip2long($network);</p> <p>if( ($ip &amp; $mask) == $network) echo &quot;valid ip and maskn&quot;;</p> <p>?&gt;</p> <p>----</p> <p>?????????????????趨</p> <p>header(&quot;Content-type: application/x-download&quot;);</p> <p>header(&quot;Content-Disposition: attachment; filename=$file_download_name;&quot;);</p> <p>header(&quot;Accept-Ranges: bytes&quot;);</p> <p>header(&quot;Content-Length: $download_size&quot;);</p> <p>echo 'xxx'</p> <p>??header???ftp??????,?????????????</p> <p>???????:</p> <p>header('Pragma: public');</p> <p>header('Cache-Control: private');</p> <p>header('Cache-Control: no-cache, must-revalidate');</p> <p>header('Accept-Ranges: bytes');</p> <p>header('Connection: close');</p> <p>header(&quot;Content-Type: audio/mpeg&quot;);</p> <p>header(&quot;Location:ftp://download:1bk3l4s3k9s2@232.2.22.22/2222/web????????????/cn_web.rmvb&quot;);</p> <p>???????????</p> <p>ereg(&quot;^[&quot;.chr(0xa1).&quot;-&quot;.chr(0xff).&quot;]+$&quot;, $str);</p> <p>?????滻???????????????</p> <p>function urlPar [Asp???]ASP:??????????????????? http://www.haxv.top//tech/180.html ???? Asp??? 2009/6/20 21:46:54 <p>????????????????????????????????????ASP????</p> <p> <table cellspacing="0" cellpadding="6" width="95%" align="center" border="0" style="border-right: #cccccc 1px dotted; table-layout: fixed; border-top: #cccccc 1px dotted; border-left: #cccccc 1px dotted; border-bottom: #cccccc 1px dotted"> <tbody> <tr> <td bgcolor="#fdfddf" style="word-wrap: break-word"><font color="#ff0000">???????????????</font><br /> &lt;%<br /> if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.abc.com&quot; then<br /> response.redirect &quot;abc/&quot;<br /> else if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.123.com&quot; then<br /> response.redirect &quot;123/&quot;<br /> else if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.456.com&quot; then<br /> response.redirect &quot;456/&quot;<br /> end if<br /> end if<br /> end if<br /> %&gt;</td> </tr> </tbody> </table> </p> [Asp???]???ASP??????????????????? http://www.haxv.top//tech/179.html ?????? Asp??? 2009/6/20 21:29:59 <p>??ASP????У???????????????????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ???????棺sub.htm <br /> &lt;html&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;head&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;title&gt;??????????/title&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;body&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;sub.asp&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;p&gt; ?????: <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; name=&quot;UserID&quot; size=&quot;25&quot; maxlength=&quot;20&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; ?????: <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; name=&quot;Pass&quot; size=&quot;12&quot; maxlength=&quot;20&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;??&quot;&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/p&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/form&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/body&gt; <br /> &nbsp;&nbsp;&nbsp; &lt;/html&gt;</p> <p>&nbsp;&nbsp;&nbsp; SUB.asp???? <br /> &nbsp;&nbsp;&nbsp; &lt;% <br /> &nbsp;&nbsp;&nbsp; ???????е????? <br /> &nbsp;&nbsp;&nbsp; user=request.from(&quot;UserID&quot;) <br /> &nbsp;&nbsp;&nbsp; ???????????????????(?????????????JAVASCRIPT OR VBSCRIPT????????????????????????? <br /> &nbsp;&nbsp;&nbsp; if user=&quot;&quot; then <br /> &nbsp;&nbsp;&nbsp; ????????????棡 <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err1.htm&quot; <br /> &nbsp;&nbsp;&nbsp; ?????????????????????? <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; pass=request.from(&quot;Pass&quot;) <br /> &nbsp;&nbsp;&nbsp; if pass=&quot;&quot; then <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err2.htm&quot; <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; ????<font color="#000000">?????</font> <br /> &nbsp;&nbsp;&nbsp; file=server.mappath(&quot;????????&quot;) <br /> &nbsp;&nbsp;&nbsp; set conn=server.createobject(&quot;adodb.connection&quot;) <br /> &nbsp;&nbsp;&nbsp; dr=&quot;driver={microsoft <font color="#000000">access</font> driver (*.mdb)};dbq=&quot;&amp;file <br /> &nbsp;&nbsp;&nbsp; conn.open dr <br /> &nbsp;&nbsp;&nbsp; set rs=server.createobject(&quot;adodb.recordset&quot;) <br /> &nbsp;&nbsp;&nbsp; ??????????SQL???? <br /> &nbsp;&nbsp;&nbsp; sql=&quot;select * from ?? where user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot; <br /> &nbsp;&nbsp;&nbsp; rs.open sql <br /> &nbsp;&nbsp;&nbsp; if not rs.eof then <br /> &nbsp;&nbsp;&nbsp; ????????????????? <br /> &nbsp;&nbsp;&nbsp; reponse.redirect &quot;login.asp&quot; <br /> &nbsp;&nbsp;&nbsp; else <br /> &nbsp;&nbsp;&nbsp; ??????????????? <br /> &nbsp;&nbsp;&nbsp; response.write &quot;err3.htm&quot; <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; %&gt;</p> <p>&nbsp;&nbsp;&nbsp; ???о????????????????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ???????????????????????SUb.htm??????????????</p> <p>&nbsp;&nbsp;&nbsp; ????????????????a or 1 = 1 ?? OR =</p> <p>&nbsp;&nbsp;&nbsp; ????????????????a or 1 = 1 ?? OR =</p> <p>&nbsp;&nbsp;&nbsp; ??????????...&ldquo;??????????ò????????????????...&quot;</p> <p>&nbsp;&nbsp;&nbsp; &quot;a &quot; ??&ldquo;1&rdquo;????????</p> <p>&nbsp;&nbsp;&nbsp; ??????????????????Щ??????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ?????Щ?????????????SQL????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ?????????????SQL????????в??????user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot;????????</p> <p>&nbsp;&nbsp;&nbsp; sql=&quot;select * from ?? where user= &quot;&amp;user&amp;&quot; and pass= &quot;&amp;pass&amp;&quot; &quot;</p> <p>&nbsp;&nbsp;&nbsp; ?????????????????????</p> <p>&nbsp;&nbsp;&nbsp; sql=&quot;select * from ?? where user= a or 1 = 1 and pass= a or 1 = 1 &quot;</p> <p>&nbsp;&nbsp;&nbsp; ???????????в????????????????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ????USER PASS????????? ?????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ?????????</p> <p>&nbsp;&nbsp;&nbsp; ??????????????</p> <p>&nbsp;&nbsp;&nbsp; ??REPLACE?????????????????к???????????????滻??????????????sql=&quot;select * from ?? where user= &quot;&amp;replace(user,&quot; &quot;,&quot; &quot;)&amp;&quot; and pass= &quot;&amp;replace(pass,&quot; &quot;,&quot; &quot;)&amp;&quot; &quot;</p> <p>&nbsp;&nbsp;&nbsp; ??????????????滻???????????Σ???????????&quot; &quot;????????&quot;&gt;&quot;??&quot;&lt;&quot;??&quot;&amp;&quot;??&quot;%&quot;???????????????????????REPLACE????????????????????????</p> <p>&nbsp;&nbsp;&nbsp; ????????????</p> <p>&nbsp;&nbsp;&nbsp; ?ó????????????????????????????????????????????????????????κο????Σ???????????????????????<br /> &lt;% <br /> &nbsp;&nbsp;&nbsp; ?????????????????? <br /> &nbsp;&nbsp;&nbsp; user=request.from(&quot;user&quot;) <br /> &nbsp;&nbsp;&nbsp; pass=request.from(&quot;pass&quot;) <br /> &nbsp;&nbsp;&nbsp; ... <br /> &nbsp;&nbsp;&nbsp; ????????? <br /> &nbsp;&nbsp;&nbsp; for i=1 to len(user) <br /> &nbsp;&nbsp;&nbsp; ??MID????????????user??i λ????????? <br /> &nbsp;&nbsp;&nbsp; us=mid(user,i,1) <br /> &nbsp;&nbsp;&nbsp; ??????????????б?? <br /> &nbsp;&nbsp;&nbsp; if us=&quot; &quot; or us=&quot;%&quot; or us=&quot;&lt;&quot; or us=&quot;&gt;&quot; or us=&quot;&amp;&quot; then <br /> &nbsp;&nbsp;&nbsp; ??????????????????????????????????????????? <br /> &nbsp;&nbsp;&nbsp; response.redirect &quot;err2.htm&quot; <br /> &nbsp;&nbsp;&nbsp; response.end <br /> &nbsp;&nbsp;&nbsp; end if <br /> &nbsp;&nbsp;&nbsp; next <br /> &nbsp;&nbsp;&nbsp; ... <br /> &nbsp;&nbsp;&nbsp; %&gt;</p> 平码三中三1码中特见证奇迹
<acronym id="guwig"></acronym>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<rt id="guwig"></rt>
<acronym id="guwig"><small id="guwig"></small></acronym>
<tr id="guwig"></tr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<menu id="guwig"><object id="guwig"></object></menu>
<rt id="guwig"><small id="guwig"></small></rt>
<sup id="guwig"><small id="guwig"></small></sup>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<wbr id="guwig"></wbr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"></acronym>
<tr id="guwig"></tr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<tr id="guwig"><xmp id="guwig">
<tr id="guwig"></tr>
<rt id="guwig"></rt>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym><acronym id="guwig"><small id="guwig"></small></acronym>
<rt id="guwig"></rt>
<tr id="guwig"></tr>
<rt id="guwig"></rt> <samp id="guwig"></samp>
<rt id="guwig"></rt>
<wbr id="guwig"></wbr>
<samp id="guwig"><noscript id="guwig"></noscript></samp>
<samp id="guwig"></samp> <sup id="guwig"><small id="guwig"></small></sup>
<object id="guwig"><small id="guwig"></small></object><optgroup id="guwig"><menu id="guwig"></menu></optgroup>
<object id="guwig"><center id="guwig"></center></object>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<acronym id="guwig"></acronym>
<option id="guwig"></option>
<acronym id="guwig"></acronym>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<acronym id="guwig"><optgroup id="guwig"></optgroup></acronym>
<tr id="guwig"></tr>
<acronym id="guwig"></acronym>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<rt id="guwig"></rt>
<acronym id="guwig"><small id="guwig"></small></acronym>
<tr id="guwig"></tr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<menu id="guwig"><object id="guwig"></object></menu>
<rt id="guwig"><small id="guwig"></small></rt>
<sup id="guwig"><small id="guwig"></small></sup>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<wbr id="guwig"></wbr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"></acronym>
<tr id="guwig"></tr>
<acronym id="guwig"><small id="guwig"></small></acronym>
<tr id="guwig"><xmp id="guwig">
<tr id="guwig"></tr>
<rt id="guwig"></rt>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym>
<acronym id="guwig"><small id="guwig"></small></acronym><acronym id="guwig"><small id="guwig"></small></acronym>
<rt id="guwig"></rt>
<tr id="guwig"></tr>
<rt id="guwig"></rt> <samp id="guwig"></samp>
<rt id="guwig"></rt>
<wbr id="guwig"></wbr>
<samp id="guwig"><noscript id="guwig"></noscript></samp>
<samp id="guwig"></samp> <sup id="guwig"><small id="guwig"></small></sup>
<object id="guwig"><small id="guwig"></small></object><optgroup id="guwig"><menu id="guwig"></menu></optgroup>
<object id="guwig"><center id="guwig"></center></object>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<acronym id="guwig"></acronym>
<option id="guwig"></option>
<acronym id="guwig"></acronym>
<rt id="guwig"><optgroup id="guwig"></optgroup></rt>
<acronym id="guwig"><optgroup id="guwig"></optgroup></acronym>
<tr id="guwig"></tr>
东莞打什么工赚钱 7m篮球比分即时比分繁 北京十一选五前三直走势 麻将技巧口诀 助赢北京pk10app 1378捕鱼控制账号 四川宜宾农村养殖什么能赚钱 云南11选5开奘结果云南 麻将游戏 线上收款码平台有哪些 江苏十一选五开奖结果p 看点头条如何赚钱 大富翁棋牌游戏 复式投注价格表 网络棋牌游戏输赢原理 糖果星星消消乐下载