![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP随身笔记
YiChunLin
这个作者很懒,什么都没留下…
展开
-
PHP codeigniter框架
设置时区 入口文件 index.php date_default_timezone_set(‘Asia/Shanghai’); 配置默认控制器 config =>routes.php default_control 载入辅助函数 $this->load->helper(); url辅助 site_url函数:http://localhost/index.php 主要原创 2016-09-13 16:19:59 · 1094 阅读 · 0 评论 -
ECSHOP如何解决DEPRECATED: PREG_REPLACE()
1、错误原因: preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。 如果你的PHP版本恰好是PHP5.5.X,那你的ECSHOP肯定就会报类似这样的错误。 2、解决办法: 一、将 cls_template.php的300行 return preg_replace("/{([^\}\{\n]*)}/e", "\转载 2016-09-06 09:46:10 · 414 阅读 · 0 评论 -
php CSV表格导入导出
我们先准备mysql数据表,假设项目中有一张记录学生信息的表student,并有id,name,sex,age分别记录学生的姓名、性别、年龄等信息。 CREATE TABLE `student` ( `id` int(11) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `sex` varchar(10) NOT NULL转载 2016-11-07 10:23:07 · 337 阅读 · 0 评论 -
PHP CodeIgniter(CI)去掉 index.php
PHP CodeIgniter(CI)去掉 index.php 去掉CodeIgniter(CI)默认url中的index.php的步骤: 1.打开apache的配置文件,conf/httpd.conf : 1 LoadModule rewrite_module modules/mod_rewrite.so转载 2016-10-07 11:09:02 · 291 阅读 · 0 评论