摘要:
;;;;;;;;;;;; 警告 ;;;;;;;;;;;;; 此配置文件是对于新安装的PHP的默认设置.; 默认情况下,PHP使用此配置文件安装; 此配置针对开发目的,并且*不是*针对生产环境; 基于一些安全方面的考虑,在你的网站上线之前,请考虑使用php.ini-recommended; 以及在线文档 http://php.net/manual/en/security.php.;;;;;;;;;;;;;;;;;;;; 关于 php.ini ;;;;;;;;;;;;;;;;;;;;; 此文件控制了PHP行为的很多方面. 为了让PHP能够读取它; 必须命名为 'php.ini'. 阅读全文
posted @ 2013-04-06 21:35
JobinWang
阅读(516)
评论(0)
推荐(1)
摘要:
今天在网上看到一个人的对于php开发中字符编码的总结,感觉不错,摘录如下:一,php编码转换 1.通过iconv()函数实现编码转换 语法:iconv(string in_charset,string out_charset,string str)将指定字符串str由in_charset编码格式转换成out_charset编码格式,返回bool值。 2.通过mb_convert_encoding()函数实现编码转换 语法:mb_convert_encoding(string str,string to_encoding[,mixed from_encoding]) 将字符串str的编码由fro 阅读全文
posted @ 2013-04-06 21:34
JobinWang
阅读(16929)
评论(0)
推荐(2)
摘要:
1、检查mysql配置中是否有配置my.ini文件 是否有default-character-set = "utf8"2、检查index.php是否有设置utf8 //配置 $config = new Zend_Config_Ini('../conf/config.ini','general'); Zend_Registry::set('config', $config); $db = Zend_Db::factory($config->db->adapter,$config->db->config-& 阅读全文
posted @ 2013-04-06 21:20
JobinWang
阅读(353)
评论(0)
推荐(0)

浙公网安备 33010602011771号