导航

2012年10月22日

摘要: TcpTrace是一个可以用来调试Web服务器和客户端之间通信的优秀工具。主要的配置项介绍ListenonPort:本机监听的端口,后面请求服务时使用;DestinationServer:目标服务器的地址DestinationPort:目标端口例如:如果你的服务器是www.nextphp.com,端口是80,可以这样设置:ListenonPort:9901,其它任意都可以,只要不重复。DestinationServer:www.nextphp.comDestinationPort:80然后确定,TcpTrace就可以跑起来了。 阅读全文

posted @ 2012-10-22 14:53 eastson 阅读(705) 评论(0) 推荐(0) 编辑

摘要: 幸福不是开多豪华的车,而是开着车平安回家;幸福不是房子有多大,而是房里的笑声有多甜;幸福不是爱人多漂亮,而是爱人的笑容有多灿烂;幸福不是成功时的喝彩多热烈,而是失意时有个声音对你说:加油。 阅读全文

posted @ 2012-10-22 14:52 eastson 阅读(134) 评论(0) 推荐(0) 编辑

摘要: utf8的编码有nobom&bom区分。<?php if (isset($_GET['dir'])){ //config the basedir $basedir=$_GET['dir']; }else{ $basedir = '.'; } $auto = 1; checkdir($basedir); function checkdir($basedir){ if ($dh = opendir($basedir)) { while (($file = readdir($dh)) !== false) { ... 阅读全文

posted @ 2012-10-22 14:51 eastson 阅读(144) 评论(0) 推荐(0) 编辑

摘要: C:\Windows>TelnetMicrosoftTelnet>open10.103.1.425220xxx.com.cnMicrosoftESMTPMAILService,Version:6.0.3790.3959readyatFri,21Oct201112:50:04+0800EHLO250-xxx.com.cnHello[10.103.4.57]250-TURN250-SIZE250-ETRN250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8bitmime250-BINARYMIME250-CHUNKING250-VRFY25 阅读全文

posted @ 2012-10-22 14:51 eastson 阅读(579) 评论(0) 推荐(0) 编辑

摘要: UTF-8以字节为编码单元,没有字节序的问题。UTF-16以两个字节为编码单元,在解释一个UTF-16文本前,首先要弄清楚每个编码单元的字节序。例如收到一个“奎”的Unicode编码是594E,“乙”的Unicode编码是4E59。如果我们收到UTF-16字节流“594E”,那么这是“奎”还是“乙”?Unicode规范中推荐的标记字节顺序的方法是BOM。BOM不是“BillOfMaterial”的BOM表,而是ByteOrderMark。在UCS编码中有一个叫做"ZEROWIDTHNO-BREAKSPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所 阅读全文

posted @ 2012-10-22 14:49 eastson 阅读(161) 评论(0) 推荐(0) 编辑

摘要: http://www.khngai.com/chinese/charmap/Whatmakethisworldextremelyinterestingisthevarietyofstandards.Nobodyseemstoagreetosettlewithaunifiedwayofdoingthings.Wecanseethisfromthelanguagesthatwespeak,thefoodweeat,thehousesthatwebuildandalotofotherexample.ThereareafewwaysofrepresentingChinesecharactersinco 阅读全文

posted @ 2012-10-22 14:47 eastson 阅读(395) 评论(0) 推荐(0) 编辑

摘要: 首先,您的拥有一个有泛域名解析的顶级域名,例如:domain.com其次,在httpd.conf中打开mod_rewrite之后,在httpd.conf的最后,添加以下内容:RewriteEngine onRewriteMap lowercase int:tolowerRewriteMap vhost txt:/usr/local/etc/apache/vhost.mapRewriteCond ${lowercase:%{SERVER_NAME}} ^(. )$RewriteCond ${vhost:%1} ^(/.*)$RewriteRule ^/(.*)$ %1/$1其中的/usr/loc 阅读全文

posted @ 2012-10-22 14:46 eastson 阅读(605) 评论(0) 推荐(0) 编辑

摘要: 公司最近计划搞一个报表服务器,用FineReport作为后台WebServer,浏览器作为客户端。公司的ERP是使用PowerBuilder9.0开发的,为了实现在ERP中集成FineReport,想到了在PowerBuilder中嵌入IE控件的处理方式。在网上搜到下面代码:Integer resultoleobject objExplorerobjExplorer = CREATE oleobjectresult = objExplorer.ConnectToNewObject( "InternetExplorer.Application")IF result = 0 T 阅读全文

posted @ 2012-10-22 14:44 eastson 阅读(1881) 评论(0) 推荐(0) 编辑

摘要: <IfModulemod_rewrite.c>RewriteEngineOn#商品详情RewriteRule^goods/([0-9]+)/?$index.php?app=goods&id=$1[L]RewriteRule^goods/([0-9]+)/([^/]+)/?$index.php?app=goods&id=$1&act=$2[L]RewriteRule^goods/([0-9]+)/([^/]+)/page_([^/]+)/?$index.php?app=goods&id=$1&act=$2&page=$3[L]Rewri 阅读全文

posted @ 2012-10-22 14:44 eastson 阅读(318) 评论(0) 推荐(0) 编辑

摘要: 准备工作1.新增一个Application应用,新增一个窗口。2.在窗口中新增一个OLE控件:MicrosoftWebBrowser,命名为old_1。3.新增一个TextBox网址输入控件,命名为sle_url,初始值为c:\temp\index.html。4.新增一个Button控件,命名为cb_go,clicked代码如下:ole_1.object.Navigate(sle_url.text)5.新增文件c:\temp\index.html,内容如下:<script language="javascript">function sayhello(msg){ 阅读全文

posted @ 2012-10-22 14:42 eastson 阅读(5015) 评论(0) 推荐(0) 编辑