RSS
  • 首页
  • 关于

2009年9月 的文章存档

phpMyAdmin升级到3.2.x版遇到的常见问题

九月 30, 2009 by admin | 0 Comment »

phpMyAdmin是一个用PHP编写的基于Web的MySQL管理工具。从事过PHP+MySQL开发的朋友肯定接触过它,非常方便。最近把电脑上的phpMyAdmin升级到了3.2.2版,遇到了一些问题,在此总结一下。

1. “空密码登录被禁止”  问题
很多时候我们在本机测试时会将root用户密码设置为空。但升级到phpMyAdmin 3.2.2版的时候,会遇到无法以空密码登录root用户的情况。怎么解决呢? 请参照如下步骤:
(1) 找到你的phpMyAdmin程序所在的目录,这个根据你个人的情况有所不同。
(2) 打开 phpMyAdmin\libraries\ 路径下的 config.default.php 这个文件,找到下面这行

$cfg['Servers'][$i]['AllowNoPassword'] = false;

将其修改为

$cfg['Servers'][$i]['AllowNoPassword'] = true;

(3) 重新访问你的phpMyAdmin,你会发现空密码的root用户也可以登录了。

2. “配置文件现在需要一个短语密码” 问题
在登录进去之后可能会看到“配置文件现在需要一个短语密码”这条警告信息。这是因为你没有设置一个用来给Cookie加密的密钥。解决方法还是首先打开上文所说的 config.default.php 文件,并找到下面这行

$cfg['blowfish_secret'] = '';

将其修改为

$cfg['blowfish_secret'] = '你的密钥';

说明: 这里的“你的密钥”是你所设置的密钥字符串,可以随意设置。
修改保存之后,重新登录phpMyAdmin就可以了。

3. “无法载入mcrypt扩展” 问题
这个问题与phpMyAdmin没有多少关系,是因为你的 PHP 运行环境没有开启mcrypt扩展。以Windows下为例,首先你要确保PHP目录的ext子目录下有 php_mcrypt.dll 这个文件,没有的话去网上下载一个。然后打开你的 php.ini 文件,找到下面这行

;extension=php_mcrypt.dll

去掉这行行首的分号,保存,然后重启Apache就可以开启mcrypt支持了。这个时候重新登陆phpMyAdmin,此问题就已经解决。


PHP, Web | Tags: MYSQL, PHP, phpMyAdmin


升级到Windows 7 Ultimate

九月 20, 2009 by admin | 0 Comment »

昨天闲着无聊,下载了Windows 7 Ultimate的镜像文件,原本是打算今后买了新电脑再安装的。但是突然想起来我现在这台式机也曾安装过Win7的测试版,感觉还行,就是驱动不好找,运行倒是很流畅。我就想试试看正式版的Win7是不是会自带大部分的驱动,对旧硬件的识别是否有所改进,但结果是很伤心的。别的设备很容易被识别,而且Win7自带的那些驱动似乎也可以使它们正常运转,但我的集成显卡就悲剧了,根本就无法被识别出来,最多只能设置到1024×768的分辨率。说明一下,我这机器比较老,用的是Ati RC410芯片组,在当年这集成显卡也还算不错,想不到现在居然面临无驱动可用的地步,甚至用自动更新也不行。

悲剧啊

悲剧啊

最后,我找到了一份Vista版的驱动,发现居然能用,还能开启Aero效果,真是神了。

win7

win7


杂谈 | Tags: RC410, Windows 7


CodeIgniter发布1.7.2版

九月 12, 2009 by admin | 0 Comment »

CodeIgniter 发布 1.7.2 版

EllisLab 发布了 CodeIgniter 1.7.2。有什么新内容?主要的更改如下:

兼容 PHP 5.3.0。
新增购物车类库。
改善表单辅助函数。
在公共函数中新增 is_php(),让 PHP 版本比较更方便。
修改 show_error() 以便发送 HTTP 服务器响应码,并且所有内部错误提示都会发送合适的状态码。
修复了很多 BUG。
1.7.2 版已经在 subversion 中存在了很长一段时间了,并且已经于 7 月下旬兼容于 PHP 5.3.0,不过可以理解的是许多用户并没有使用那个开发中的版本。虽然我也希望能有时间为这个版本多增加一些“大改动”的项目,并把版本号变为 1.8,但时间不等人。我们的许多用户都在 Mac 上开发,但 OS X“雪豹”中的 PHP 是 5.3.0,所以与其让用户继续等待不如先推出这个稳定版–毕竟已经 7 个月没有更新了。虽然如此,也还是有一些惊喜和可喜的变化。敬请享用!

以上内容转自http://codeigniter.org.cn/blog。

详细的Change Log:

版本 1.7.2
发布日期:2009年9月11日
SVN 版本: 1737

Libraries
Added a new Cart Class.
Added the ability to pass $config['file_name'] for the File Uploading Class and rename the uploaded file.
Changed order of listed user-agents so Safari would more accurately report itself. (#6844)
Database
Switched from using gettype() in escape() to is_* methods, since future PHP versions might change its output.
Updated all database drivers to handle arrays in escape_str()
Added escape_like_str() method for escaping strings to be used in LIKE conditions
Updated Active Record to utilize the new LIKE escaping mechanism.
Added reconnect() method to DB drivers to try to keep alive / reestablish a connection after a long idle.
Modified MSSQL driver to use mssql_get_last_message() for error messages.
Helpers
Added form_multiselect() to the Form helper.
Modified form_hidden() in the Form helper to accept multi-dimensional arrays.
Modified form_prep() in the Form helper to keep track of prepped fields to avoid multiple prep/mutation from subsequent calls which can occur when using Form Validation and form helper functions to output form fields.
Modified directory_map() in the Directory helper to allow the inclusion of hidden files, and to return FALSE on failure to read directory.
Modified the Smiley helper to work with multiple fields and insert the smiley at the last known cursor position.
General
Compatible with PHP 5.3.0
Modified show_error() to allow sending of HTTP server response codes.
Modified show_404() to send 404 status code, removing non-CGI compatible header() statement from error_404.php template.
Added set_status_header() to the Common functions to allow use when the Output class is unavailable. Common functions to facilitate PHP version comparisons.
Added is_php() to
Added 2 CodeIgniter “cheatsheets” (thanks to DesignFellow.com for this contribution).
1.7.2 修复的 BUG
Fixed assorted user guide typos or examples (#6743, #7214, #7516, #7287, #7852, #8224, #8324, #8349).
Fixed a bug in the Form Validation library where multiple callbacks weren’t working (#6110)
doctype helper default value was missing a “1″.
Fixed a bug in the language class when outputting an error for an unfound file.
Fixed a bug in the Calendar library where the shortname was output for “May”.
Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a slash through.
Fixed a fatal error in the Oracle and ODBC drivers (#6752)
Fixed a bug where xml_from_result() was checking for a nonexistent method.
Fixed a bug where Database Forge’s add_column and modify_column were not looping through when sent multiple fields.
Fixed a bug where the File Helper was using ‘/’ instead of the DIRECTORY_SEPARATOR constant.
Fixed a bug to prevent PHP errors when attempting to use sendmail on servers that have manually disabled the PHP popen() function.
Fixed a bug that would cause PHP errors in XML-RPC data if the PHP data type did not match the specified XML-RPC type.
Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data types.
Fixed a case sensitive string replacement in xss_clean()
Fixed a bug in form_textarea() where form data was not prepped correctly.
Fixed a bug in form_prep() causing it to not preserve entities in the user’s original input when called back into a form element
Fixed a bug in _protect_identifiers() where the swap prefix ($swap_pre) was not being observed.
Fixed a bug where the 400 status header sent with the ‘disallowed URI characters’ was not compatible with CGI environments.
Fixed a bug in the typography class where heading tags could have paragraph tags inserted when using auto_typography().
下载1.7.2版:
http://codeigniter.org.cn/downloads


CodeIgniter | Tags: CodeIgniter


IT狂人的博客

  • 声明

    本博文章及相关作品(包括但不限于文字、图片),除特别说明为转载外,均属本人原创,依据《国家知识产权法》、《著作权法》和《信息网络传播权保护条例》,原创知识产权、版权均为本人所有,本人享有著作权,并受法律保护。

    文章欢迎转载,但请事先与本人联系:email
    未经本人许可,任何人不得转载或使用整体或任何部分的内容。未尽事宜,依据相关法律法规处理。

  • 分类目录

    • ASP .Net (1)
    • CodeIgniter (8)
    • PHP (8)
    • Web (5)
    • 未分类 (1)
    • 杂谈 (4)
    • 译文 (7)
    • 音乐&电影 (1)
  • 文章索引模板

    • 2010年七月 (5)
    • 2010年五月 (1)
    • 2010年四月 (1)
    • 2010年三月 (2)
    • 2010年二月 (1)
    • 2010年一月 (2)
    • 2009年十二月 (1)
    • 2009年十月 (2)
    • 2009年九月 (3)
    • 2009年八月 (10)
  • 标签

    AJAX API AVC CakePHP CHM CodeIgniter CURD Django DroidSansFallback eaccelerator footer Framework Fran Healy Git helper IT Kohana MVC MVP MYSQL NetBeans Oasis ORM pChart pdf PHP phpMyAdmin Ruby tcpdf techified time Travis Twitter Web windows Wordpress XML Zend 传记 外链 大写 孔乙己 框架 盗链 过滤
  •  

    2009年九月
    一 二 三 四 五 六 日
    « 八   十 »
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Playlist


  • 最近评论

    • cnenc 在 使用PHP的Glob()函数来遍历文件夹 上的评论
    • TCPDF开源项目 - PDF - php开源项目 - php免费pdf生成软件 - php开源软件 - TCPDF - 开源网 在 使用TCPDF输出完美的中文PDF文档 上的评论
    • 匿名 在 在Windows下编译适用于PHP 5.2.12及5.2.13的eAccelerator.dll(附下载) 上的评论
    • 笑话大王 在 使用TCPDF输出完美的中文PDF文档 上的评论
    • admin 在 在Windows下编译适用于PHP 5.2.12及5.2.13的eAccelerator.dll(附下载) 上的评论
  • 链接

    • cnBeta.COM
    • CodeIgniter 中国
    • jQuery中文社区
    • Lily Allen
    • Mtime时光网
    • W3School
    • 小众软件
    • 破烂熊乐园
    • 韩寒
Copyright © 2010 IT狂人的博客 All Rights Reserved. XHTML CSS THEME by I SOFTWARE REVIEWS