Tag: CodeIgniter
使用百度云(BCE),CodeIgniter(CI)配置session为redis
- by chenxue4076
- 9 years ago
使用百度云服务器或者BAE的时候,codeigniter如何配置session为redis的保存路径
查看全文Codeigniter(CI)使用captcha 辅助函数获取验证码的一些解决方法
- by chenxue4076
- 10 years ago
Codeigniter(CI) captcha验证码获取不到,显示不出,不想存入数据库,修改验证码字符个数等问题解决方案。
查看全文CodeIgniter(CI)数据库操作提示Undefined property,Filename: core/Model.php
- by chenxue4076
- 10 years ago
CodeIgniter(CI)数据库操作提示A PHP Error was encountered
Severity: Notice
Message: Undefined property: User::XX
Filename: core/Model.php
Line Number: 51
codeigniter(CI)刷新页面新增空session数据解决方案codeigniter(CI) refurbish page new session data added resolvent
- by chenxue4076
- 13 years ago
使用codeigniter(CI)开发网站,使用自带session时会出现写seesion失败,但数据库中添加空session,每次刷新页面都会新增。 这个问题产生是由于手册给到的帮助信息中创建session表的时候有个字段的长度不够造成的,只要修改这个长度就可以了, CREATE TABLE IF NOT EXISTS `ci_sessions` ( session_id varchar(40) DEFAULT ‘0’ NOT NULL, ip_address varchar(16) DEFAULT ‘0’ NOT NULL, user_agent varchar(50) NOT NULL, last_activity int(10) unsigned DEFAULT 0 NOT NULL, user_data text DEFAULT ” NOT NULL, PRIMARY KEY (session_id) ); 将user_agent varchar(50) NOT NULL,的字段长度改到255吧,50太少了,查看网站上,他至少也是60多个字符。use codeigniter(CI)to develop website, session writed failed,and session table of database be added empty session,every time you refurbish page. this is because you use the example of handbook about session,you need to change something. CREATE TABLE IF NOT EXISTS `ci_sessions` ( session_id varchar(40) DEFAULT ‘0’ NOT NULL, ip_address varchar(16) DEFAULT ‘0’ NOT NULL, user_agent varchar(50) NOT NULL, last_activity int(10) unsigned DEFAULT 0 NOT NULL, user_data text DEFAULT ” NOT NULL, PRIMARY KEY (session_id) ); change 50 to 255 in this string : user_agent varchar(50) NOT NULL.Hope it can help you. (1350)
查看全文codeigniter(CI)使用js实现ajax异步提交出现500 Internal Server Error
- by chenxue4076
- 13 years ago
codeigniter(CI)js user ajax post data shows 500 Internal Server Error。codeigniter(CI)使用js实现ajax异步提交出现500 Internal Server Error
查看全文