在网站找到这段话: 此文件的类型在禁止上传之列 之类的错误。该错误的主要原因是php的hp_fileinfo没有开启, 特别是在windows下,php5.3以下。因为CI会用到该扩展检查文件类型, 而在php5.3以上该扩展是默认引入的,不是一个扩展。所以需要打开该扩展并重启服务。 另外一个原因是 ...
分类:
Web程序 时间:
2018-06-06 15:58:06
阅读次数:
681
./configure --prefix=/usr/local/php5.2 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql ...
分类:
Web程序 时间:
2018-06-05 12:22:46
阅读次数:
301
时间比较 使用where方法 where方法支持时间比较,例如: 第三个参数可以传入任何有效的时间表达式,会自动识别你的时间字段类型,支持的时间类型包括timestamps、datetime、date和int。 使用whereTime方法 whereTime方法提供了日期和时间字段的快捷查询,示例如 ...
分类:
Web程序 时间:
2018-06-03 21:22:27
阅读次数:
342
./configure\--prefix=/usr/local/php\--with-config-file-path=/usr/local/php/etc/\--enable-inline-optimization\--enable-shared\--enable-opcache\--enable-fpm\--with-fpm-user=php\--with-fpm-group=web\--wi
分类:
Web程序 时间:
2018-06-02 22:54:34
阅读次数:
736
11.14/11.15 Apache和PHP结合11.16/11.17 Apache默认虚拟主机11.14/11.15 Apache和PHP结合通过配置httpd支持phphttpd主配置文件/usr/local/apache2.4/conf/httpd.conf更改配置文件 去掉这一部分的注释将php7注释掉,因为加载两个php会有冲突。(同样注释掉php5也一样,使用其中一个就可以了
分类:
其他好文 时间:
2018-06-02 12:21:46
阅读次数:
128
student 表 外键 grade_idgrade 表主键 id在 模型中student表关联方法public function Grade(){ return $this->hasOne('Grade','id','grade_id','');}在控制器中 使用 $artres = Studen ...
分类:
Web程序 时间:
2018-06-01 18:13:26
阅读次数:
244
# 禁用 Apache 中的 PHP7.0 sudo a2dismod php7.0 # 启用 PHP5.6 sudo a2enmod php5.6 # 重启 Apache sudo /etc/init.d/apache2 restart # 切换 CLI sudo update-alternati ...
分类:
Web程序 时间:
2018-06-01 13:25:44
阅读次数:
210
运行的时候发现 切换到5.5以上的版本就会提示No input file specified,其他什么也没有但是切换到5.5以及5.5以下就没啥问题,这是因为需要修改.htcaess文件 修改如下: RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]修改成Rewri ...
分类:
Web程序 时间:
2018-05-31 23:08:31
阅读次数:
560
环境: PHP5.2 以上版本 先去官网下载smarty模版引擎的库文件到你的电脑或服务器上 smarty官方网站库文件下载地址: https://www.smarty.net/download 下载完成后解压到本地 有用的是libs文件夹里面的文件,在你的www目录下新建一个smarty目录,将l ...
分类:
Web程序 时间:
2018-05-31 02:47:12
阅读次数:
231