Archive for August, 2007

x64位机编译gd库时问题

Wednesday, August 8th, 2007

错误提示: /usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad value collect2: ld returned 1 exit status 错误原因:zlib安装问题 解决方法:重新编译zlib文件,步骤如下: #cd /home/bak # tar -zxvf zlib-1.2.3.tar.gz # cd zlib-1.2.3 #./configure #vi Makefile 找到 CFLAGS=-O3 -DUSE_MMAP 在后面加入-fPIC,即变成CFLAGS=-O3 -DUSE_MMAP -fPIC #make # make install 问题解决 注:蓝字部分是解决的方法

KindEditor—简单实用的在线编辑工具

Monday, August 6th, 2007

KindEditor是基于浏览器的简单的所见即所得(WYSWYG)HTML在线编辑器,有体积小、文件少、效率高等特点。它是100%用DHTML/JavaScript编写的,可以很方便地嵌入到ASP,ASP.NET,PHP,JSP等CGI程序里。 这是这个程序的演示和下载地址: http://www.kindsoft.net/kindeditor.php 前几天,公司要求加入在线编辑的功能,我就忙着上网寻找源代码,找了几个,比较了一下,还是这个程序相对的比较好,不论是从技术实现上,还是功能上以及程序的大小和可操作性上都很不错,请仔细阅读技术文档。

Mysql数据库升级后,原有数据库密码无法访问

Sunday, August 5th, 2007

  提示错误: Client does not support authentication protocol requested by server; consider upgrading MySQL client 原因: 出现这种问题也只有在MYSQL4.1.x以上版本 因为你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password();,这样使用password()生成的密码在旧的版本上的客户端就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外)。 解决方法:重新设置mysql的数据库密码 # mysql -uroot -p1234567 (用户名:root,密码:1234567) mysql>set password for ‘root’@'localhost’=old_password(’1234567′); mysql>exit #