server-u 下FTP客户端中文显示为乱码 解决方法

    Serv-U 下FTP客户端中文显示为乱码 解决办法 设置步骤: 1、打开Serv-U 8.0控制台,点击“限制和设置”–“为域配置高级FTP命令设置和行为”。 2、在FTP设置中找到OPTS UTF8命令,右击禁用此命令。 3、点击下面的“全局属性”。 4、在出来的FTP命令属性选项卡中,“高级选项”里,把“对所有收发的路径和文件名使用UFT-8编码”前面的钩去掉! 5、以后再上传中文文件,就不会出现乱码问题 阅读全文
    作者:admin | 分类:Life | 阅读:212 views |

    Windows注册与删除mysql服务

    –MySQL注册系统服务 CD到MYSQL安装目录bin目录下,以C:\Program Files\MySQL\MySQL Server 5.0\bin为例: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt –install MySQL –defaults-file=”C:\Program Files\MySQL\MySQL Server 5.0\my.ini” –MySQ删除系统服务 C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt –remove MySQL...阅读全文
    作者:admin | 分类:Life | 阅读:162 views |

    php 生成 js调用的html

    ?View Code PHPecho 'document.write("'.str_replace(array("\r\n","\n","\r"),array("\\\r\n","\\\n","\\\r"),addslashes($temp)).'");'; 第一次做这个东西留个记录..需要注意的地方是转移和换行.为了保持代码的格式需要换行前面加上链接符号\ 阅读全文
    作者:admin | 分类:Life | 阅读:101 views |

    Event

    ?View Code JAVSCRIPT function onclick(event) { alert(this.onclick); } onclick(); 发现这个东西先记录了。有空研究下 原文地址 ?View Code JAVSCRIPTBrowser Compatibility   Netscape will use the event name as the function name and define a single argument, event, which is the Event object passed to every event handler.   function onclick(...阅读全文
    作者:admin | 分类:Life | 阅读:62 views |

    好记性不如烂笔头,记录几个常用的Linux操作

    作者:老王 Shell公共函数库 Linux系统里有一些公共的Shell函数库可供使用,最重要的是/etc/rc.d/init.d/functions,在/etc/init.d目 录下有很多脚本都用到了这个函数库,里面提供了很多有用的方法,比如:killproc()等等。所以编写自己的Shell脚本时可以套用这个函数库: if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions elif [ -f /etc/rc.d/init.d/functions ] ; then ....阅读全文
    作者:admin | 分类:Life | 阅读:84 views |

    Http status

    标准http状态码,定义如下: Number:Description 100:Continue 101:Switching protocols 200:OK 201:Created 202:Accepted 203:Non-Authoritative Information 204:No Content 205:Reset Content 206:Partial Content 300:Multiple Choices 301:Moved Permanently 302:Found 303:See Other 304:Not Modified 305:Use Proxy 307:Temporary Redirect 400:Bad Request 401:Unauthorized 402:Pa...阅读全文
    作者:admin | 分类:Life | 阅读:74 views |

    test

    <input value="" id="keyword"><button id="submit">提交</button> <script type="text/javascript"> function $(id) { return document.getElementById(id); } $('submit').onclick = test($('keyword').value); function test(url) { return function() { alert(url) } } </script> function changeTsiz...阅读全文
    作者:admin | 分类:Life | 阅读:65 views |

    To be with you

    to be with you 作词:david grahame/eric martin 作曲:david grahame/eric martin 编曲:dive-e productions hold on little girl show me what he’s done to you stand up little girl a broken heart can’t be that bad when it’s through, it’s through fate will twist the both of you so come on baby come on over let me be the one to show you i’m ...阅读全文
    作者:admin | 分类:Life | 阅读:78 views |

    奇怪的keyCode和charCode

    Firefox 返回键值 keyCode(keypress) 功能键(Shift,Ctrl,Alt,PrintScreen,ScrollLock无返回值)返回正确值,以外的所有键值皆为0 keyCode(keydown) 返回除PrintScreen外所有键值,字母键皆以大写状态显示键值(65-90) keyCode(keyup) 返回除PrintScreen外所有键值,字母键皆以大写状态显示键值(65-90) charCode(keypress) 返回字符键大小写键值(65-90,97-122),Shift,Ctrl,Al...阅读全文
    作者:admin | 分类:Life | 阅读:111 views |

    unset()是否真的释放内存

    PHP变量对内存的开销与释放,unset()是否真的释放内存。测试代码如下: 复制PHP内容到剪贴板 PHP代码: for ( $i = 1; $i < 100; $i++ ) {        $str = str_repeat('01234567', $i);        $a = memory_get_usage();         unset($str);  &nb...阅读全文
    作者:admin | 分类:Life | 阅读:84 views |