摘要: 输入命令nginx -t # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is succe 阅读全文
posted @ 2016-08-14 12:19 hereim 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: 修改application/config.php文件里: 'url_common_param'=>true这个参数一定要开启 阅读全文
posted @ 2016-07-23 19:13 hereim 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 报错截图1: 报错截图2: 报错原因没有权限访问thinkphp5/runtime目录。 解决方法: 1.如果thinkphp5/runtime目录下面有文件,先清空thinkphp5/runtime目录; 2.修改thinkphp5/runtime目录权限为可读可写。 阅读全文
posted @ 2016-07-22 21:33 hereim 阅读(483) 评论(0) 推荐(0) 编辑
摘要: thinkphp5 1.去除httpd.conf文件中"#LoadModule rewrite_module modules/mod_rewrite.so"前面的"#"号; 2.修改httpd.conf文件中的AllowOverride None为AllowOverride All,目的是支持.ht 阅读全文
posted @ 2016-07-22 10:01 hereim 阅读(1946) 评论(0) 推荐(0) 编辑
摘要: 网站模板 https://html5up.net/ 阅读全文
posted @ 2016-07-21 17:15 hereim 阅读(92) 评论(0) 推荐(0) 编辑
摘要: jquery方法: 原生js方法: 阅读全文
posted @ 2016-03-29 19:07 hereim 阅读(3096) 评论(0) 推荐(0) 编辑
摘要: 我的安装文件为:mysql-5.7.9-osx10.10-x86_64.dmg卸载方法:sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*sudo rm -rf /Library/StartupItems/MySQLCOMsudo rm -rf... 阅读全文
posted @ 2015-11-07 18:07 hereim 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 原因:macbook系统自带的 PHP5.5 的 GD 库有问题。解决方法:在终端运行:curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5等待安装,然后就ok了。 阅读全文
posted @ 2015-11-07 17:44 hereim 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 进入phpmyadmin目录找到文件config.sample.inc.php,复制一份,改名为config.inc.php如果访问时候出现如标题的错误,使用下面的方法解决:修改config.inc.php中的host的值,将localhost改为127.0.0.1保存即可。 阅读全文
posted @ 2015-11-07 13:18 hereim 阅读(956) 评论(0) 推荐(0) 编辑
摘要: function str_split_unicode($str, $l = 0) { if ($l > 0) { $ret = array(); $len = mb_strlen($str, "UTF-8"); for ($i = 0; $i a [... 阅读全文
posted @ 2015-11-04 20:09 hereim 阅读(3349) 评论(0) 推荐(0) 编辑