摘要: 按照需要,使用Jquery.Ajax方法来实现登录。但因为后台数据库是gbk,debug调试发现传送进来的总是以utf-8。开始想到是不是apache的defaultcharset设置的问题。查看手册:AddDefaultCharset指令说明当应答内容是text/plain或text/html时,在HTTP应答头中加入的默认字符集语法AddDefaultCharset On|Off|charset默认值AddDefaultCharset Off作用域server config, virtual host, directory, .htaccess覆盖项FileInfo状态核心(C)模块cor 阅读全文
posted @ 2012-04-24 20:19 zaric 阅读(807) 评论(0) 推荐(0) 编辑
摘要: 安装XHProf:wget http://pecl.php.net/get/xhprof-0.9.2.tgztar zxf xhprof-0.9.2.tgzcd xhprof-0.9.2cp -r xhprof_html xhprof_lib<directory_for_htdocs>cd extensionphpize./configuremakemake install编辑php.ini:[xhprof]extension=xhprof.so;; directory used by default implementation of the iXHProfRuns; inter 阅读全文
posted @ 2012-04-24 16:08 zaric 阅读(834) 评论(0) 推荐(0) 编辑