<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[振华博客]]></title> 
    <link>http://www.zhenhua.org/</link> 
    <description><![CDATA[振华博客,振华's blog]]></description> 
    <language>UTF-8</language> 
    <copyright><![CDATA[Copyright 2010, 振华博客]]></copyright> 
    <webMaster><![CDATA[zenhua@gmail.com (振华)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Tue, 07 Sep 2010 20:02:46 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[asp生成写入文本文件]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=635]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sun, 14 Dec 2008 04:12:12 +0800</pubDate> 
      <description><![CDATA[log.<br /><br />1.html<div class="code">&lt;form name=&quot;LoginForm&quot; method=&quot;post&quot; action=&quot;1.asp&quot; style=&quot;margin-top:0px;&quot;&gt;<br />姓名: &lt;input name=&quot;xingming&quot; type=&quot;text&quot; class=&quot;input&quot; style=&quot;width:100px;&quot;&gt;<br />手机号码: &lt;input name=&quot;shouji&quot; type=&quot;text&quot; class=&quot;input&quot; style=&quot;width:100px;&quot;&gt;<br />内容: &lt;input name=&quot;liuyan&quot; type=&quot;text&quot; class=&quot;input&quot; style=&quot;width:150px;&quot;&gt;<br />&lt;input type=&quot;image&quot; src=&quot;images/submit.gif&quot; &gt;<br />&lt;/form&gt;</div><br />1.asp<div class="code">&lt;%<br />dim xingming<br />dim shouji<br />dim liuyan<br />xingming=request(&quot;xingming&quot;) <br />shouji=request(&quot;shouji&quot;) <br />liuyan=request(&quot;liuyan&quot;) </div>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=635]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Fckeditor 保存出现乱码解决方法(asp版)]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=500]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sun, 04 Nov 2007 07:11:52 +0800</pubDate> 
      <description><![CDATA[在asp文件第一行加入&lt;%@ codepage=936%&gt; 即可解决]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=500]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[FCKeditor 2.3 上传出现乱码解决方法(asp版)]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=499]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sun, 04 Nov 2007 07:08:40 +0800</pubDate> 
      <description><![CDATA[1) 快速上传,即&quot;上传&quot;标签页,上传成功之后弹出的对话框为乱码,(文件名重复时会弹出这个对话框)<br /><br />(2) 快速上传后返回到&quot;链接&quot;页后,&quot;链接&quot;页的输入框为乱码<br /><br />(3) 文件&quot;浏览&quot;上传之后弹出的对话框为乱码.(同1)<br /><br />(4) 文件&quot;浏览&quot;上传保存的文件名为乱码<br /><br />解决方法:<br /><br />步骤1.<br /><br /> 将 \Fckeditor\editor\filemanager\browser\default\frmupload.html 文件的编码(原先为ANSI编码)改为UTF-8保存即可,<br /><br />打开该文件 &gt;&gt; 另存为 &gt;&gt; 点“保存”按钮右边的下拉箭头 &gt;&gt; 编码保存... &gt;&gt; 替换原文件 &gt;&gt; Unicode（UTF-8有签名）<br /><br />或者<br /><br />在\FCKeditor\editor\filemanager\browser\default\frmupload.html)加上一段<br />&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br /><br />该方法解决了(4)所述的乱码现象.<br /><br />步骤2.<br /><br />找到\FCKeditor\edito]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=499]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[PHP4.3.* bugs]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=355]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sat, 10 Jun 2006 14:40:50 +0800</pubDate> 
      <description><![CDATA[using PHP configured as FastCGI or CGI better than ISAPI?<br /><br />HTTP 服务器在处理 ISAPI 应用程序 &#39;<br />php4ts!php_request_startup + 0x1B5<br />php4isapi + 0x44D0<br />&#39; 时，遇到了无法处理的异常错误。<br /><br /><a href="http://bugs.php.net/bug.php?id=24534" title="http://bugs.php.net/bug.php?id=24534" target="_blank">http://bugs.php.net/bug.php?id=24534</a><br /><a href="http://bugs.php.net/bug.php?id=25657" title="http://bugs.php.net/bug.php?id=25657" target="_blank">http://bugs.php.net/bug.php?id=25657</a>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=355]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[用php作wap开发时遇到的问题及类]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=350]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Sun, 04 Jun 2006 17:40:31 +0800</pubDate> 
      <description><![CDATA[1.文件格式<br />首先要遇到的问题肯定是文件格式,在作web开发时,大家都是用的html或xhtml,到了wap开发时,就得用wml了.什么是wml?大家可以去查更详细的资料,我这里只是略微的提到.在我看来wml类似于xml,有非常严格的格式,在作wap页面时,都得用wml来作为显示.<br /><br />wml的语法非常简单,在用php作动态输出时,一定要发送一个头信息,标明本页面是wml,而不是别的什么*ml.<br /><br />Code:<br />--------------------------------------------------------------------------------<br /> header(&quot;Content-type: text/vnd.wap.wml; charset=\&quot;gb2312\&quot;&quot;); <br />--------------------------------------------------------------------------------<br /> <br /><br />这里用的字符集是gb2312,在移动的平台上是没有任何问题的,但在联通的平台上就不行了,一定得用utf-8,为了更通用,还是用utf-8更安全.即<br />]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=350]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[asp图片目录直读]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=160]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Thu, 09 Sep 2004 00:40:39 +0800</pubDate> 
      <description><![CDATA[<div class="code">&lt;%@language=vbscript codepage=936 %&gt;<br />&lt;% <br />&#39;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />&#39;++++++Wrance的图片系统目录直读版1.0+++++++++++++++++++++++<br />&#39;++++++演示：http&#58;//www.cnecg.com/pic.asp++++++++++++++++++<br />&#39;++++++此为免费程序，您可以任意修改，欢迎发表建议++++++++++<br />&#39;++++++Email:cnecg@yahoo.com.cn,QQ:74028+++++++++++++++++++<br /><br />&#39;以下为修改内容<br />Const UploadDir=&quot;/uptupian&quot;        &#39;存放文件的目录<br />Const MaxPerPage=30                      &#39;每页显示数量<br />const title=&quot;+++＿＿Wrance的图片系统目录直读版＿ &quot;  &#39;标题<br /><br />&#39;检查组件是否已经安装<br />Function IsObjInstalled(strClassString)        </div>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=160]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[防注入代码]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=152]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Wed, 08 Sep 2004 18:42:50 +0800</pubDate> 
      <description><![CDATA[ASP：<br />作者：Neeao<br /><div class="code">&lt;%<br />&#39;--------数据库连接部分--------------<br />dim dbkillSql,killSqlconn,connkillSql<br />dbkillSql=&quot;Sql.asp&quot; <br />&#39;On Error Resume Next<br />Set killSqlconn = Server.CreateObject(&quot;ADODB.Connection&quot;)<br />connkillSql=&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot; &amp; Server.MapPath(dbkillSql)<br />killSqlconn.Open connkillSql<br />If Err Then<br />&nbsp;err.Clear<br />&nbsp;Set killSqlconn = Nothing<br />&nbsp;Response.Write &quot;数据库连接出错，请检查连接字串。&quot;<br />&nbsp;Response.End<br />End If<br /><br />&#39;--------定义部份------------------<br />Dim Fy_Post,Fy_Get,Fy_In,Fy_Inf,Fy_Xh,Fy_db,Fy_dbstr,Kill_IP,WriteSql</div>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=152]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ASP目录直读]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=151]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Wed, 08 Sep 2004 18:41:54 +0800</pubDate> 
      <description><![CDATA[&lt;!---将此文件存index.asp看看效果就知道了加上权限就可以方便自己了,---&gt;<div class="code">&lt;%<br />&#39;const_domain_name为域名最后不要加斜杠<br />const const_domain_name=&quot;http&#58;//localhost&quot;<br />%&gt;<br />&lt;style&gt;<br />b,img,a{font-size:9pt;line-height:150%;text-decoration:none;color:#0000cc;}<br />span{font-size:12pt;}<br />&lt;/style&gt;<br /><br />&lt;%<br />&#39;------------------------------------------------显示当前目录下的子目录和文件<br />sub list<br />Dim fso, f, f1, fc, s<br />Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br />Set f = fso.GetFolder(server.MapPath(&quot;.&quot;))<br />set fs=f.SubFolders<br />Set fc =f.Files<br /><br />For Each fss in fs</div>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=151]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ASP页面自动转换为Word文档]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=149]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Wed, 08 Sep 2004 18:39:40 +0800</pubDate> 
      <description><![CDATA[方法1：<br /><div class="code">&lt;% Response.ContentType = &quot;application/msword&quot; %&gt; </div> <br /><br />方法2：<br /><div class="code">&lt;%<br />Response.Buffer=true<br />取得要下载的文件，如果不为空。就下载<br />dim url,trueurl<br />url=&quot;下载文件路径和下载文件名&quot;<br />fname=Request(&quot;filename&quot;)<br />if fname&lt;&gt;&quot;&quot; then<br />trueurlurl=server.MapPath(&quot;/&quot;) &amp;url<br />end if<br />set objFso=server.CreateObject(&quot;scripting.filesystemobject&quot;)<br />set fn=objFso.GetFile(trueurl)<br />flsize=fn.size<br />flname=fn.name<br />set fn=nothing<br />set objFso=nothing<br /><br />set objStream=server.CreateObject(&quot;adodb.stream&quot;)<br />objStream.Open<br />objStream.Type=1<br />objStream.LoadFromFile url</div>]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=149]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ASP入门]]></title> 
      <link><![CDATA[http://www.zhenhua.org/article.asp?id=147]]></link> 
      <category><![CDATA[Asp/php]]></category> 
      <author><![CDATA[振华 <null@null.com>]]></author> 
      <pubDate>Wed, 08 Sep 2004 18:36:43 +0800</pubDate> 
      <description><![CDATA[&lt;1&gt;格式<br />&lt;%<br />语句<br />......<br />%&gt;<br />&lt;2&gt;定义变量dim语句<br />&lt;%<br />dim a,b<br />a=10<br />b=&quot;ok!&quot;<br />%&gt;<br />注意：定义的变量可以是数值型，也可以是字符或者其他类型的<br />&lt;3&gt;简单的控制流程语句<br />1. If 条件1 then<br />语句1<br />elseif 条件2 then<br />语句2<br />else<br />语句3<br />endif<br />2.while 条件<br />语句 <br />wend<br />3.for count=1 to n step m<br />语句1<br />exit for<br />语句2<br />next <br />二.ASP数据库简单*作教程<br />&lt;1&gt;.数据库连接(用来单独编制连接文件conn.asp)<br />&lt;%<br />Set conn = Server.CreateObject(&quot;ADODB.Connection&quot;)<br />conn.Open &quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot; &amp; Server.MapPath<br />(&quot;\bbs\db1\user.mdb&quot;) <br />%&gt;<br />(用来连接bbs\db1\目录下的user.mdb数据库)<br />&lt;2&gt;显示数据库记录<br />原理：将数据库中的记录一一显示到客户端浏览器，依次读出数据库中的每一条记录<br />如果是从头到尾：用循环并判断指针是否到末 使用: not rs.eof<br />]]></description>
      <wfw:commentRss><![CDATA[http://www.zhenhua.org/feed.asp?q=comment&id=147]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
